public class BlockItemUseContext extends ItemUseContext
Modifier and Type | Field and Description |
---|---|
private BlockPos |
offsetPos |
protected boolean |
replaceClicked |
hand, item, player, rayTraceResult, world
Modifier | Constructor and Description |
---|---|
|
BlockItemUseContext(ItemUseContext context) |
protected |
BlockItemUseContext(World worldIn,
PlayerEntity playerIn,
Hand handIn,
ItemStack stackIn,
BlockRayTraceResult rayTraceResultIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
canPlace() |
static BlockItemUseContext |
func_221536_a(BlockItemUseContext context,
BlockPos pos,
Direction directionIn) |
Direction |
getNearestLookingDirection() |
Direction[] |
getNearestLookingDirections() |
BlockPos |
getPos() |
boolean |
replacingClickedOnBlock() |
func_225518_g_, getFace, getHand, getHitVec, getItem, getPlacementHorizontalFacing, getPlacementYaw, getPlayer, getWorld, isInside
private final BlockPos offsetPos
protected boolean replaceClicked
public BlockItemUseContext(ItemUseContext context)
protected BlockItemUseContext(World worldIn, @Nullable PlayerEntity playerIn, Hand handIn, ItemStack stackIn, BlockRayTraceResult rayTraceResultIn)
public static BlockItemUseContext func_221536_a(BlockItemUseContext context, BlockPos pos, Direction directionIn)
public BlockPos getPos()
getPos
in class ItemUseContext
public boolean canPlace()
public boolean replacingClickedOnBlock()
public Direction getNearestLookingDirection()
public Direction[] getNearestLookingDirections()