Package net.minecraft.item
Class DirectionalPlaceContext
- java.lang.Object
-
- net.minecraft.item.ItemUseContext
-
- net.minecraft.item.BlockItemUseContext
-
- net.minecraft.item.DirectionalPlaceContext
-
public class DirectionalPlaceContext extends BlockItemUseContext
-
-
Field Summary
Fields Modifier and Type Field Description private Direction
direction
-
Fields inherited from class net.minecraft.item.BlockItemUseContext
replaceClicked
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canPlace()
BlockPos
getClickedPos()
Direction
getHorizontalDirection()
Direction
getNearestLookingDirection()
Direction[]
getNearestLookingDirections()
float
getRotation()
boolean
isSecondaryUseActive()
boolean
replacingClickedOnBlock()
-
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 Detail
-
direction
private final Direction direction
-
-
Method Detail
-
getClickedPos
public BlockPos getClickedPos()
- Overrides:
getClickedPos
in classBlockItemUseContext
-
canPlace
public boolean canPlace()
- Overrides:
canPlace
in classBlockItemUseContext
-
replacingClickedOnBlock
public boolean replacingClickedOnBlock()
- Overrides:
replacingClickedOnBlock
in classBlockItemUseContext
-
getNearestLookingDirection
public Direction getNearestLookingDirection()
- Overrides:
getNearestLookingDirection
in classBlockItemUseContext
-
getNearestLookingDirections
public Direction[] getNearestLookingDirections()
- Overrides:
getNearestLookingDirections
in classBlockItemUseContext
-
getHorizontalDirection
public Direction getHorizontalDirection()
- Overrides:
getHorizontalDirection
in classItemUseContext
-
isSecondaryUseActive
public boolean isSecondaryUseActive()
- Overrides:
isSecondaryUseActive
in classItemUseContext
-
getRotation
public float getRotation()
- Overrides:
getRotation
in classItemUseContext
-
-