public class AutomaticItemPlacementContext extends ItemPlacementContext
| Modifier and Type | Field and Description |
|---|---|
private Direction |
facing |
canReplaceExisting| Constructor and Description |
|---|
AutomaticItemPlacementContext(World world,
BlockPos pos,
Direction facing,
ItemStack stack,
Direction side) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPlace() |
boolean |
canReplaceExisting() |
BlockPos |
getBlockPos() |
Direction[] |
getPlacementDirections() |
Direction |
getPlayerFacing() |
Direction |
getPlayerLookDirection() |
float |
getPlayerYaw() |
boolean |
shouldCancelInteraction() |
offsetgetHand, getHitPos, getHitResult, getPlayer, getSide, getStack, getWorld, hitsInsideBlockprivate final Direction facing
public BlockPos getBlockPos()
getBlockPos in class ItemPlacementContextpublic boolean canPlace()
canPlace in class ItemPlacementContextpublic boolean canReplaceExisting()
canReplaceExisting in class ItemPlacementContextpublic Direction getPlayerLookDirection()
getPlayerLookDirection in class ItemPlacementContextpublic Direction[] getPlacementDirections()
getPlacementDirections in class ItemPlacementContextpublic Direction getPlayerFacing()
getPlayerFacing in class ItemUsageContextpublic boolean shouldCancelInteraction()
shouldCancelInteraction in class ItemUsageContextpublic float getPlayerYaw()
getPlayerYaw in class ItemUsageContext