net.minecraft.world.item.context

public class UseOnContext

dev
net.minecraft.world.item.context.UseOnContext
net.minecraft.class_1838

Field summary

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

Constructor summary

ModifierConstructor
public (Player arg0, InteractionHand arg1, BlockHitResult arg2)
protected (Level arg0, Player arg1, InteractionHand arg2, ItemStack arg3, BlockHitResult arg4)

Method summary

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