net.minecraft.world.item

public class UseOnContext

bfw
net.minecraft.world.item.UseOnContext
net.minecraft.class_1838
net.minecraft.item.ItemUsageContext
net.minecraft.item.ItemUseContext
net.minecraft.server.v1_15_R1.ItemActionContext

字段概要

修饰符与类型字段
protected final Player
b
player
field_8942
player
field_196001_b
protected final InteractionHand
c
hand
field_19176
hand
field_221534_c
protected final BlockHitResult
d
hitResult
field_17543
hit
field_221535_d
protected final Level
e
level
field_8945
world
field_196006_g
protected final ItemStack
f
itemStack
field_8941
stack
field_196007_h

构造函数概要

修饰符构造函数
public (Player player, InteractionHand hand, BlockHitResult hit)
protected (Level world, Player player, InteractionHand hand, ItemStack stack, BlockHitResult hit)

方法概要

修饰符与类型方法
public BlockPos
a()
getClickedPos()
method_8037()
getBlockPos()
func_195995_a()
getClickPosition()
public Direction
i()
getClickedFace()
method_8038()
getSide()
func_196000_l()
getClickedFace()
public Vec3
j()
getClickLocation()
method_17698()
getHitPos()
func_221532_j()
public boolean
k()
isInside()
method_17699()
hitsInsideBlock()
func_221533_k()
public ItemStack
l()
getItemInHand()
method_8041()
getStack()
func_195996_i()
getItemStack()
public Player
m()
getPlayer()
method_8036()
getPlayer()
func_195999_j()
getEntity()
public InteractionHand
n()
getHand()
method_20287()
getHand()
func_221531_n()
public Level
o()
getLevel()
method_8045()
getWorld()
func_195991_k()
getWorld()
public Direction
f()
getHorizontalDirection()
method_8042()
getPlayerFacing()
func_195992_f()
public boolean
g()
isSecondaryUseActive()
method_8046()
shouldCancelInteraction()
func_225518_g_()
isSneaking()
public float
h()
getRotation()
method_8044()
getPlayerYaw()
func_195990_h()