public class DirectionalPlaceContext extends BlockItemUseContext
Modifier and Type | Field and Description |
---|---|
private Direction |
lookDirection |
replaceClicked
hand, item, player, rayTraceResult, world
Constructor and Description |
---|
DirectionalPlaceContext(World worldIn,
BlockPos pos,
Direction lookDirectionIn,
ItemStack stackIn,
Direction against) |
Modifier and Type | Method and Description |
---|---|
boolean |
canPlace() |
boolean |
func_225518_g_() |
Direction |
getNearestLookingDirection() |
Direction[] |
getNearestLookingDirections() |
Direction |
getPlacementHorizontalFacing() |
float |
getPlacementYaw() |
BlockPos |
getPos() |
boolean |
replacingClickedOnBlock() |
func_221536_a
private final Direction lookDirection
public BlockPos getPos()
getPos
in class BlockItemUseContext
public boolean canPlace()
canPlace
in class BlockItemUseContext
public boolean replacingClickedOnBlock()
replacingClickedOnBlock
in class BlockItemUseContext
public Direction getNearestLookingDirection()
getNearestLookingDirection
in class BlockItemUseContext
public Direction[] getNearestLookingDirections()
getNearestLookingDirections
in class BlockItemUseContext
public Direction getPlacementHorizontalFacing()
getPlacementHorizontalFacing
in class ItemUseContext
public boolean func_225518_g_()
func_225518_g_
in class ItemUseContext
public float getPlacementYaw()
getPlacementYaw
in class ItemUseContext