net.minecraft.world.item

public class BlockPlaceContext

extends UseOnContext

bcn
net.minecraft.world.item.BlockPlaceContext
net.minecraft.class_1750
net.minecraft.item.ItemPlacementContext
net.minecraft.item.BlockItemUseContext
net.minecraft.server.v1_15_R1.BlockActionContext

字段概要

修饰符与类型字段
private final BlockPos
g
relativePos
field_7903
placementPos
field_196014_j
protected boolean
a
replaceClicked
field_7904
canReplaceExisting
field_196013_a

构造函数概要

修饰符构造函数
public (UseOnContext context)
protected (Level world, Player player, InteractionHand arg2, ItemStack arg3, BlockHitResult arg4)

方法概要

修饰符与类型方法
public static BlockPlaceContext
a(bcn arg0, fk arg1, fp arg2)
at(BlockPlaceContext arg0, BlockPos arg1, Direction arg2)
method_16355(class_1750 arg0, class_2338 arg1, class_2350 arg2)
offset(ItemPlacementContext context, BlockPos pos, Direction side)
func_221536_a(BlockItemUseContext arg0, BlockPos arg1, Direction arg2)
public BlockPos
a()
getClickedPos()
method_8037()
getBlockPos()
func_195995_a()
getClickPosition()
public boolean
b()
canPlace()
method_7716()
canPlace()
func_196011_b()
public boolean
c()
replacingClickedOnBlock()
method_7717()
canReplaceExisting()
func_196012_c()
public Direction
d()
getNearestLookingDirection()
method_7715()
getPlayerLookDirection()
func_196010_d()
public Direction[]
e()
getNearestLookingDirections()
method_7718()
getPlacementDirections()
func_196009_e()