net.minecraft.world.item.context

public class UseOnContext

daj
net.minecraft.world.item.context.UseOnContext
net.minecraft.class_1838
net.minecraft.item.ItemUsageContext
net.minecraft.world.item.context.ItemActionContext

Field summary

Modifier and TypeField
private final Player
a
player
field_8942
player
private final InteractionHand
b
hand
field_19176
hand
private final BlockHitResult
c
hitResult
field_17543
hit
private final Level
d
level
field_8945
world
private final ItemStack
e
itemStack
field_8941
stack

Constructor summary

ModifierConstructor
public (Player player, InteractionHand hand, BlockHitResult hit)
protected (Level world, Player player, InteractionHand hand, ItemStack stack, BlockHitResult hit)

Method summary

Modifier and TypeMethod
protected final BlockHitResult
j()
getHitResult()
method_30344()
getHitResult()
public BlockPos
a()
getClickedPos()
method_8037()
getBlockPos()
public Direction
k()
getClickedFace()
method_8038()
getSide()
public Vec3
l()
getClickLocation()
method_17698()
getHitPos()
public boolean
m()
isInside()
method_17699()
hitsInsideBlock()
public ItemStack
n()
getItemInHand()
method_8041()
getStack()
public Player
o()
getPlayer()
method_8036()
getPlayer()
public InteractionHand
p()
getHand()
method_20287()
getHand()
public Level
q()
getLevel()
method_8045()
getWorld()
public Direction
g()
getHorizontalDirection()
method_8042()
getHorizontalPlayerFacing()
public boolean
h()
isSecondaryUseActive()
method_8046()
shouldCancelInteraction()
public float
i()
getRotation()
method_8044()
getPlayerYaw()