public class ItemUseContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected EnumFacing |
face |
protected float |
hitX |
protected float |
hitY |
protected float |
hitZ |
protected ItemStack |
item |
protected EntityPlayer |
player |
protected BlockPos |
pos |
protected World |
world |
Modifier | Constructor and Description |
---|---|
|
ItemUseContext(EntityPlayer playerIn,
ItemStack itemIn,
BlockPos posIn,
EnumFacing faceIn,
float hitXIn,
float hitYIn,
float hitZIn) |
protected |
ItemUseContext(World worldIn,
EntityPlayer playerIn,
ItemStack itemIn,
BlockPos posIn,
EnumFacing faceIn,
float hitXIn,
float hitYIn,
float hitZIn) |
Modifier and Type | Method and Description |
---|---|
EnumFacing |
getFace() |
float |
getHitX() |
float |
getHitY() |
float |
getHitZ() |
ItemStack |
getItem() |
EnumFacing |
getPlacementHorizontalFacing() |
float |
getPlacementYaw() |
EntityPlayer |
getPlayer() |
BlockPos |
getPos() |
World |
getWorld() |
boolean |
isPlacerSneaking() |
protected final EntityPlayer player
protected final float hitX
protected final float hitY
protected final float hitZ
protected final EnumFacing face
protected final World world
protected final ItemStack item
protected final BlockPos pos
public ItemUseContext(EntityPlayer playerIn, ItemStack itemIn, BlockPos posIn, EnumFacing faceIn, float hitXIn, float hitYIn, float hitZIn)
protected ItemUseContext(World worldIn, @Nullable EntityPlayer playerIn, ItemStack itemIn, BlockPos posIn, EnumFacing faceIn, float hitXIn, float hitYIn, float hitZIn)
public BlockPos getPos()
public ItemStack getItem()
@Nullable public EntityPlayer getPlayer()
public World getWorld()
public EnumFacing getFace()
public float getHitX()
public float getHitY()
public float getHitZ()
public EnumFacing getPlacementHorizontalFacing()
public boolean isPlacerSneaking()
public float getPlacementYaw()