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

Method resetPositionToBB

src/main/java/net/minecraft/entity/Entity.java:958–963  ·  view source on GitHub ↗

Resets the entity's position to the center (planar) and bottom (vertical) points of its bounding box.

()

Source from the content-addressed store, hash-verified

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 {

Callers 1

moveEntityMethod · 0.95

Calls 1

getEntityBoundingBoxMethod · 0.95

Tested by

no test coverage detected