public class BlockItemUseContext extends ItemUseContext
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
field_196013_a |
| Constructor and Description |
|---|
BlockItemUseContext(ItemUseContext context) |
BlockItemUseContext(World worldIn,
EntityPlayer playerIn,
ItemStack itemIn,
BlockPos posIn,
EnumFacing faceIn,
float hitXIn,
float hitYIn,
float hitZIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPlace() |
EnumFacing |
getNearestLookingDirection() |
EnumFacing[] |
getNearestLookingDirections() |
BlockPos |
getPos() |
boolean |
replacingClickedOnBlock() |
getFace, getHitX, getHitY, getHitZ, getItem, getPlacementHorizontalFacing, getPlacementYaw, getPlayer, getWorld, isPlacerSneakingpublic BlockItemUseContext(ItemUseContext context)
public BlockItemUseContext(World worldIn, @Nullable EntityPlayer playerIn, ItemStack itemIn, BlockPos posIn, EnumFacing faceIn, float hitXIn, float hitYIn, float hitZIn)
public BlockPos getPos()
getPos in class ItemUseContextpublic boolean canPlace()
public boolean replacingClickedOnBlock()
public EnumFacing getNearestLookingDirection()
public EnumFacing[] getNearestLookingDirections()