类 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 pPlayer, InteractionHand pHand, BlockHitResult pHitResult) UseOnContext
(Level pLevel, Player pPlayer, InteractionHand pHand, ItemStack pItemStack, BlockHitResult pHitResult) -
方法概要
-
字段详细资料
-
player
-
hand
-
hitResult
-
level
-
itemStack
-
-
构造器详细资料
-
UseOnContext
-
UseOnContext
public UseOnContext(Level pLevel, @Nullable Player pPlayer, InteractionHand pHand, ItemStack pItemStack, BlockHitResult pHitResult)
-
-
方法详细资料
-
getHitResult
-
getClickedPos
-
getClickedFace
-
getClickLocation
-
isInside
public boolean isInside() -
getItemInHand
-
getPlayer
-
getHand
-
getLevel
-
getHorizontalDirection
-
isSecondaryUseActive
public boolean isSecondaryUseActive() -
getRotation
public float getRotation()
-