Package net.minecraft.src
Class MovingObjectPosition
java.lang.Object
net.minecraft.src.MovingObjectPosition
-
Field Summary
FieldsModifier and TypeFieldDescriptionintx coordinate of the block ray traced againstinty coordinate of the block ray traced againstintz coordinate of the block ray traced againstThe hit entityThe vector position of the hitintWhich side was hit.What type of ray trace hit was this? -
Constructor Summary
ConstructorsConstructorDescriptionMovingObjectPosition(int par1, int par2, int par3, int par4, Vec3 par5Vec3) MovingObjectPosition(Entity par1Entity) -
Method Summary
-
Field Details
-
typeOfHit
What type of ray trace hit was this? 0 = block, 1 = entity -
blockX
public int blockXx coordinate of the block ray traced against -
blockY
public int blockYy coordinate of the block ray traced against -
blockZ
public int blockZz coordinate of the block ray traced against -
sideHit
public int sideHitWhich side was hit. If its -1 then it went the full length of the ray trace. Bottom = 0, Top = 1, East = 2, West = 3, North = 4, South = 5. -
hitVec
The vector position of the hit -
entityHit
The hit entity
-
-
Constructor Details
-
MovingObjectPosition
-
MovingObjectPosition
-