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

Method getPositionEyes

src/main/java/net/minecraft/entity/Entity.java:1544–1557  ·  view source on GitHub ↗
(float partialTicks)

Source from the content-addressed store, hash-verified

1542 }
1543
1544 public Vec3 getPositionEyes(float partialTicks)
1545 {
1546 if (partialTicks == 1.0F)
1547 {
1548 return new Vec3(this.posX, this.posY + (double)this.getEyeHeight(), this.posZ);
1549 }
1550 else
1551 {
1552 double d0 = this.prevPosX + (this.posX - this.prevPosX) * (double)partialTicks;
1553 double d1 = this.prevPosY + (this.posY - this.prevPosY) * (double)partialTicks + (double)this.getEyeHeight();
1554 double d2 = this.prevPosZ + (this.posZ - this.prevPosZ) * (double)partialTicks;
1555 return new Vec3(d0, d1, d2);
1556 }
1557 }
1558
1559 public MovingObjectPosition rayTrace(double blockReachDistance, float partialTicks)
1560 {

Callers 12

getMouseOverMethod · 0.95
setRotationAnglesMethod · 0.95
rayTraceMethod · 0.95
renderSkyMethod · 0.80
rayCastMethod · 0.80
itHitableMethod · 0.80
isHitableMethod · 0.80
rayCastHitVecMethod · 0.80
getRotationsMethod · 0.80
getRotationsMethod · 0.80
placeBlockMethod · 0.80
wrayCastMethod · 0.80

Calls 1

getEyeHeightMethod · 0.95

Tested by

no test coverage detected