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