Package net.minecraft.item
Class DirectionalPlaceContext
java.lang.Object
net.minecraft.item.ItemUseContext
net.minecraft.item.BlockItemUseContext
net.minecraft.item.DirectionalPlaceContext
-
Field Summary
Fields inherited from class net.minecraft.item.BlockItemUseContext
replaceClicked
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraft.item.BlockItemUseContext
at
Methods inherited from class net.minecraft.item.ItemUseContext
getClickedFace, getClickLocation, getHand, getHitResult, getItemInHand, getLevel, getPlayer, isInside
-
Field Details
-
direction
-
-
Constructor Details
-
DirectionalPlaceContext
-
-
Method Details
-
getClickedPos
- Overrides:
getClickedPos
in classBlockItemUseContext
-
canPlace
public boolean canPlace()- Overrides:
canPlace
in classBlockItemUseContext
-
replacingClickedOnBlock
public boolean replacingClickedOnBlock()- Overrides:
replacingClickedOnBlock
in classBlockItemUseContext
-
getNearestLookingDirection
- Overrides:
getNearestLookingDirection
in classBlockItemUseContext
-
getNearestLookingDirections
- Overrides:
getNearestLookingDirections
in classBlockItemUseContext
-
getHorizontalDirection
- Overrides:
getHorizontalDirection
in classItemUseContext
-
isSecondaryUseActive
public boolean isSecondaryUseActive()- Overrides:
isSecondaryUseActive
in classItemUseContext
-
getRotation
public float getRotation()- Overrides:
getRotation
in classItemUseContext
-