Resets the entity's position to the center (planar) and bottom (vertical) points of its bounding box.
()
| 956 | * Resets the entity's position to the center (planar) and bottom (vertical) points of its bounding box. |
| 957 | */ |
| 958 | private void resetPositionToBB() |
| 959 | { |
| 960 | this.posX = (this.getEntityBoundingBox().minX + this.getEntityBoundingBox().maxX) / 2.0D; |
| 961 | this.posY = this.getEntityBoundingBox().minY; |
| 962 | this.posZ = (this.getEntityBoundingBox().minZ + this.getEntityBoundingBox().maxZ) / 2.0D; |
| 963 | } |
| 964 | |
| 965 | protected String getSwimSound() |
| 966 | { |
no test coverage detected