Called when an Entity lands on this Block. This method must update motionY because the entity will not do that on its own
(World worldIn, Entity entityIn)
| 44 | * on its own |
| 45 | */ |
| 46 | public void onLanded(World worldIn, Entity entityIn) |
| 47 | { |
| 48 | if (entityIn.isSneaking()) |
| 49 | { |
| 50 | super.onLanded(worldIn, entityIn); |
| 51 | } |
| 52 | else if (entityIn.motionY < 0.0D) |
| 53 | { |
| 54 | entityIn.motionY = -entityIn.motionY; |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * Triggered whenever an entity collides with this block (enters into the block) |
nothing calls this directly
no test coverage detected