YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.util.MovingObjectPosition Class Reference

Public Member Functions

 MovingObjectPosition (int par1, int par2, int par3, int par4, Vec3 par5Vec3)
 
 MovingObjectPosition (Entity par1Entity)
 

Public Attributes

EnumMovingObjectType typeOfHit
 
int blockX
 
int blockY
 
int blockZ
 
int sideHit
 
Vec3 hitVec
 
Entity entityHit
 
int subHit = -1
 
Object hitInfo = null
 

Constructor & Destructor Documentation

net.minecraft.util.MovingObjectPosition.MovingObjectPosition ( int  par1,
int  par2,
int  par3,
int  par4,
Vec3  par5Vec3 
)
net.minecraft.util.MovingObjectPosition.MovingObjectPosition ( Entity  par1Entity)

Member Data Documentation

int net.minecraft.util.MovingObjectPosition.blockX

x coordinate of the block ray traced against

int net.minecraft.util.MovingObjectPosition.blockY

y coordinate of the block ray traced against

int net.minecraft.util.MovingObjectPosition.blockZ

z coordinate of the block ray traced against

Entity net.minecraft.util.MovingObjectPosition.entityHit

The hit entity

Object net.minecraft.util.MovingObjectPosition.hitInfo = null

Used to add extra hit info

Vec3 net.minecraft.util.MovingObjectPosition.hitVec

The vector position of the hit

int net.minecraft.util.MovingObjectPosition.sideHit

Which 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.

int net.minecraft.util.MovingObjectPosition.subHit = -1

Used to determine what sub-segment is hit

EnumMovingObjectType net.minecraft.util.MovingObjectPosition.typeOfHit

What type of ray trace hit was this? 0 = block, 1 = entity


The documentation for this class was generated from the following file: