MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / onFallenUpon

Method onFallenUpon

src/main/java/net/minecraft/block/Block.java:1130–1133  ·  view source on GitHub ↗

Block's chance to react to a living entity falling on it. @param fallDistance The distance the entity has fallen before landing

(World worldIn, BlockPos pos, Entity entityIn, float fallDistance)

Source from the content-addressed store, hash-verified

1128 * @param fallDistance The distance the entity has fallen before landing
1129 */
1130 public void onFallenUpon(World worldIn, BlockPos pos, Entity entityIn, float fallDistance)
1131 {
1132 entityIn.fall(fallDistance, 1.0F);
1133 }
1134
1135 /**
1136 * Called when an Entity lands on this Block. This method *must* update motionY because the entity will not do that

Callers 1

updateFallStateMethod · 0.45

Calls 1

fallMethod · 0.45

Tested by

no test coverage detected