net.minecraft.world.item.context

public class DirectionalPlaceContext

extends BlockPlaceContext

dai
net.minecraft.world.item.context.DirectionalPlaceContext
net.minecraft.class_2968
net.minecraft.item.AutomaticItemPlacementContext
net.minecraft.world.item.context.BlockActionContextDirectional

Field summary

Modifier and TypeField
private final Direction
b
direction
field_13362
facing

Constructor summary

ModifierConstructor
public (Level world, BlockPos pos, Direction facing, ItemStack stack, Direction side)

Method summary

Modifier and TypeMethod
public BlockPos
a()
getClickedPos()
method_8037()
getBlockPos()
public boolean
b()
canPlace()
method_7716()
canPlace()
public boolean
c()
replacingClickedOnBlock()
method_7717()
canReplaceExisting()
public Direction
d()
getNearestLookingDirection()
method_7715()
getPlayerLookDirection()
public Direction[]
f()
getNearestLookingDirections()
method_7718()
getPlacementDirections()
public Direction
g()
getHorizontalDirection()
method_8042()
getHorizontalPlayerFacing()
public boolean
h()
isSecondaryUseActive()
method_8046()
shouldCancelInteraction()
public float
i()
getRotation()
method_8044()
getPlayerYaw()