public class DirectionalPlaceContext extends BlockItemUseContext
replaceClicked
hand, item, player, rayTraceResult, world
Constructor and Description |
---|
DirectionalPlaceContext(World p_i50051_1_,
BlockPos p_i50051_2_,
Direction p_i50051_3_,
ItemStack p_i50051_4_,
Direction against) |
Modifier and Type | Method and Description |
---|---|
boolean |
canPlace() |
Direction |
getNearestLookingDirection() |
Direction[] |
getNearestLookingDirections() |
Direction |
getPlacementHorizontalFacing() |
float |
getPlacementYaw() |
BlockPos |
getPos() |
boolean |
isPlacerSneaking() |
boolean |
replacingClickedOnBlock() |
func_221536_a
func_221533_k, getFace, getHand, getHitVec, getItem, getPlayer, getWorld
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 isPlacerSneaking()
isPlacerSneaking
in class ItemUseContext
public float getPlacementYaw()
getPlacementYaw
in class ItemUseContext