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

Method rayTrace

src/main/java/net/minecraft/entity/Entity.java:1559–1565  ·  view source on GitHub ↗
(double blockReachDistance, float partialTicks)

Source from the content-addressed store, hash-verified

1557 }
1558
1559 public MovingObjectPosition rayTrace(double blockReachDistance, float partialTicks)
1560 {
1561 Vec3 vec3 = this.getPositionEyes(partialTicks);
1562 Vec3 vec31 = this.getLook(partialTicks);
1563 Vec3 vec32 = vec3.addVector(vec31.xCoord * blockReachDistance, vec31.yCoord * blockReachDistance, vec31.zCoord * blockReachDistance);
1564 return this.worldObj.rayTraceBlocks(vec3, vec32, false, false, true);
1565 }
1566
1567 /**
1568 * Returns true if other Entities should be prevented from moving through this Entity.

Callers 1

getMouseOverMethod · 0.95

Calls 4

getPositionEyesMethod · 0.95
getLookMethod · 0.95
addVectorMethod · 0.95
rayTraceBlocksMethod · 0.80

Tested by

no test coverage detected