类 BlockPlaceContext
java.lang.Object
net.minecraft.world.item.context.UseOnContext
net.minecraft.world.item.context.BlockPlaceContext
- 直接已知子类:
DirectionalPlaceContext
-
字段概要
字段 -
构造器概要
构造器构造器说明BlockPlaceContext
(Player p_43631_, InteractionHand p_43632_, ItemStack p_43633_, BlockHitResult p_43634_) BlockPlaceContext
(UseOnContext p_43636_) BlockPlaceContext
(Level p_43638_, Player p_43639_, InteractionHand p_43640_, ItemStack p_43641_, BlockHitResult p_43642_) -
方法概要
修饰符和类型方法说明static BlockPlaceContext
at
(BlockPlaceContext p_43645_, BlockPos p_43646_, Direction p_43647_) boolean
canPlace()
boolean
从类继承的方法 net.minecraft.world.item.context.UseOnContext
getClickedFace, getClickLocation, getHand, getHitResult, getHorizontalDirection, getItemInHand, getLevel, getPlayer, getRotation, isInside, isSecondaryUseActive
-
字段详细资料
-
relativePos
-
replaceClicked
protected boolean replaceClicked
-
-
构造器详细资料
-
BlockPlaceContext
public BlockPlaceContext(Player p_43631_, InteractionHand p_43632_, ItemStack p_43633_, BlockHitResult p_43634_) -
BlockPlaceContext
-
BlockPlaceContext
public BlockPlaceContext(Level p_43638_, @Nullable Player p_43639_, InteractionHand p_43640_, ItemStack p_43641_, BlockHitResult p_43642_)
-
-
方法详细资料
-
at
public static BlockPlaceContext at(BlockPlaceContext p_43645_, BlockPos p_43646_, Direction p_43647_) -
getClickedPos
- 覆盖:
getClickedPos
在类中UseOnContext
-
canPlace
public boolean canPlace() -
replacingClickedOnBlock
public boolean replacingClickedOnBlock() -
getNearestLookingDirection
-
getNearestLookingVerticalDirection
-
getNearestLookingDirections
-