(double y, boolean onGroundIn, Block blockIn, BlockPos pos)
| 1051 | } |
| 1052 | |
| 1053 | protected void updateFallState(double y, boolean onGroundIn, Block blockIn, BlockPos pos) |
| 1054 | { |
| 1055 | if (onGroundIn) |
| 1056 | { |
| 1057 | if (this.fallDistance > 0.0F) |
| 1058 | { |
| 1059 | if (blockIn != null) |
| 1060 | { |
| 1061 | blockIn.onFallenUpon(this.worldObj, pos, this, this.fallDistance); |
| 1062 | } |
| 1063 | else |
| 1064 | { |
| 1065 | this.fall(this.fallDistance, 1.0F); |
| 1066 | } |
| 1067 | |
| 1068 | this.fallDistance = 0.0F; |
| 1069 | } |
| 1070 | } |
| 1071 | else if (y < 0.0D) |
| 1072 | { |
| 1073 | this.fallDistance = (float)((double)this.fallDistance - y); |
| 1074 | } |
| 1075 | } |
| 1076 | |
| 1077 | /** |
| 1078 | * Returns the collision bounding box for this entity |
no test coverage detected