Package net.minecraft.item
Class AutomaticItemPlacementContext
java.lang.Object
net.minecraft.item.ItemUsageContext
net.minecraft.item.ItemPlacementContext
net.minecraft.item.AutomaticItemPlacementContext
public class AutomaticItemPlacementContext extends ItemPlacementContext
-
Field Summary
Fields inherited from class net.minecraft.item.ItemPlacementContext
canReplaceExisting -
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleancanPlace()booleancanReplaceExisting()BlockPosgetBlockPos()Direction[]getPlacementDirections()DirectiongetPlayerFacing()DirectiongetPlayerLookDirection()floatgetPlayerYaw()booleanshouldCancelInteraction()Methods inherited from class net.minecraft.item.ItemPlacementContext
getVerticalPlayerLookDirection, offsetMethods inherited from class net.minecraft.item.ItemUsageContext
getHand, getHitPos, getHitResult, getPlayer, getSide, getStack, getWorld, hitsInsideBlock
-
Field Details
-
facing
-
-
Constructor Details
-
AutomaticItemPlacementContext
-
-
Method Details
-
getBlockPos
- Overrides:
getBlockPosin classItemPlacementContext
-
canPlace
public boolean canPlace()- Overrides:
canPlacein classItemPlacementContext
-
canReplaceExisting
public boolean canReplaceExisting()- Overrides:
canReplaceExistingin classItemPlacementContext
-
getPlayerLookDirection
- Overrides:
getPlayerLookDirectionin classItemPlacementContext
-
getPlacementDirections
- Overrides:
getPlacementDirectionsin classItemPlacementContext
-
getPlayerFacing
- Overrides:
getPlayerFacingin classItemUsageContext
-
shouldCancelInteraction
public boolean shouldCancelInteraction()- Overrides:
shouldCancelInteractionin classItemUsageContext
-
getPlayerYaw
public float getPlayerYaw()- Overrides:
getPlayerYawin classItemUsageContext
-