类 UseOnContext
java.lang.Object
net.minecraft.world.item.context.UseOnContext
- 直接已知子类:
BlockPlaceContext
-
字段概要
字段修饰符和类型字段说明private final InteractionHand
private final BlockHitResult
private final ItemStack
private final Level
private final Player
-
构造器概要
构造器构造器说明UseOnContext
(Player p_43709_, InteractionHand p_43710_, BlockHitResult p_43711_) UseOnContext
(Level p_43713_, Player p_43714_, InteractionHand p_43715_, ItemStack p_43716_, BlockHitResult p_43717_) -
方法概要
-
字段详细资料
-
player
-
hand
-
hitResult
-
level
-
itemStack
-
-
构造器详细资料
-
UseOnContext
-
UseOnContext
public UseOnContext(Level p_43713_, @Nullable Player p_43714_, InteractionHand p_43715_, ItemStack p_43716_, BlockHitResult p_43717_)
-
-
方法详细资料
-
getHitResult
-
getClickedPos
-
getClickedFace
-
getClickLocation
-
isInside
public boolean isInside() -
getItemInHand
-
getPlayer
-
getHand
-
getLevel
-
getHorizontalDirection
-
isSecondaryUseActive
public boolean isSecondaryUseActive() -
getRotation
public float getRotation()
-