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

Method getLook

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

interpolated look vector

(float partialTicks)

Source from the content-addressed store, hash-verified

1509 * interpolated look vector
1510 */
1511 public Vec3 getLook(float partialTicks)
1512 {
1513 if (RotationUtil.isEnabled) {
1514 float[] clientRot = RotationUtil.clientRotation;
1515 return this.getVectorForRotation(clientRot[1], clientRot[0]);
1516 }
1517 if (partialTicks == 1.0F)
1518 {
1519 return this.getVectorForRotation(this.rotationPitch, this.rotationYaw);
1520 }
1521 else
1522 {
1523 float f = this.prevRotationPitch + (this.rotationPitch - this.prevRotationPitch) * partialTicks;
1524 float f1 = this.prevRotationYaw + (this.rotationYaw - this.prevRotationYaw) * partialTicks;
1525 return this.getVectorForRotation(f, f1);
1526 }
1527 }
1528
1529 /**
1530 * Creates a Vec3 using the pitch and yaw of the entities rotation.

Callers 7

getMouseOverMethod · 0.95
updateFogColorMethod · 0.95
rayTraceMethod · 0.95
onItemRightClickMethod · 0.45
shouldAttackPlayerMethod · 0.45
onLivingUpdateMethod · 0.45
updateTaskMethod · 0.45

Calls 1

getVectorForRotationMethod · 0.95

Tested by

no test coverage detected