net.minecraft.world.level.block

public class ShelfBlock

extends BaseEntityBlock implements SelectableSlotContainer, SideChainPartBlock, SimpleWaterloggedBlock

All mapped superinterfaces:

FeatureElement, ItemLike, EntityBlock, SelectableSlotContainer, SideChainPartBlock, SimpleWaterloggedBlock, BucketPickup, LiquidBlockContainer

dyf
net.minecraft.world.level.block.ShelfBlock
net.minecraft.class_11586
net.minecraft.block.ShelfBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<ShelfBlock>
a
CODEC
field_61423
CODEC
public static final BooleanProperty
b
POWERED
field_61424
POWERED
public static final EnumProperty<Direction>
c
FACING
field_61425
FACING
public static final EnumProperty<SideChainPart>
d
SIDE_CHAIN_PART
field_61426
SIDE_CHAIN
public static final BooleanProperty
e
WATERLOGGED
field_61427
WATERLOGGED
private static final Map<Direction, VoxelShape>
f
SHAPES
field_61428
SHAPES

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<ShelfBlock>
a()
codec()
method_53969()
getCodec()
protected VoxelShape
a(efg arg0, dms arg1, jb arg2, fkd arg3)
getShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected boolean
g_(efg arg0)
useShapeForLightOcclusion(BlockState arg0)
method_9526(class_2680 arg0)
hasSidedTransparency(BlockState arg0)
protected boolean
a(efg arg0, fcg arg1)
isPathfindable(BlockState arg0, PathComputationType arg1)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
public BlockEntity
a(jb arg0, efg arg1)
newBlockEntity(BlockPos arg0, BlockState arg1)
method_10123(class_2338 arg0, class_2680 arg1)
createBlockEntity(BlockPos arg0, BlockState arg1)
protected void
a(efh$a<dqt, efg> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected void
a(efg arg0, auf arg1, jb arg2, boolean arg3)
affectNeighborsAfterRemoval(BlockState arg0, ServerLevel arg1, BlockPos arg2, boolean arg3)
method_66388(class_2680 arg0, class_3218 arg1, class_2338 arg2, boolean arg3)
onStateReplaced(BlockState arg0, ServerWorld arg1, BlockPos arg2, boolean arg3)
protected void
a(efg arg0, dno arg1, jb arg2, dqt arg3, fcz arg4, boolean arg5)
neighborChanged(BlockState arg0, Level arg1, BlockPos arg2, Block arg3, Orientation arg4, boolean arg5)
method_9612(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2248 arg3, class_9904 arg4, boolean arg5)
neighborUpdate(BlockState arg0, World arg1, BlockPos arg2, Block arg3, WireOrientation arg4, boolean arg5)
public BlockState
a(dhi arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
public BlockState
a(efg arg0, dxq arg1)
rotate(BlockState arg0, Rotation arg1)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
public BlockState
a(efg arg0, dvz arg1)
mirror(BlockState arg0, Mirror arg1)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
public int
b()
getRows()
method_72586()
getRows()
public int
c()
getColumns()
method_72587()
getColumns()
protected InteractionResult
a(ddo arg0, efg arg1, dno arg2, jb arg3, cvm arg4, bxs arg5, fju arg6)
useItemOn(ItemStack arg0, BlockState arg1, Level arg2, BlockPos arg3, Player arg4, InteractionHand arg5, BlockHitResult arg6)
method_55765(class_1799 arg0, class_2680 arg1, class_1937 arg2, class_2338 arg3, class_1657 arg4, class_1268 arg5, class_3965 arg6)
onUseWithItem(ItemStack arg0, BlockState arg1, World arg2, BlockPos arg3, PlayerEntity arg4, Hand arg5, BlockHitResult arg6)
private static boolean
a(ddo arg0, cvm arg1, edq arg2, OptionalInt arg3, cvl arg4)
swapSingleItem(ItemStack arg0, Player arg1, ShelfBlockEntity arg2, OptionalInt arg3, Inventory arg4)
method_72614(class_1799 arg0, class_1657 arg1, class_11597 arg2, OptionalInt arg3, class_1661 arg4)
swapSingleStack(ItemStack stack, PlayerEntity player, ShelfBlockEntity blockEntity, OptionalInt slot, PlayerInventory playerInventory)
private void
a(dno arg0, jb arg1, cvl arg2)
swapHotbar(Level arg0, BlockPos arg1, Inventory arg2)
method_72615(class_1937 arg0, class_2338 arg1, class_1661 arg2)
swapAllStacks(World world, BlockPos pos, PlayerInventory playerInventory)
public SideChainPart
p(efg arg0)
getSideChainPart(BlockState arg0)
method_72619(class_2680 arg0)
getSideChainPart(BlockState arg0)
public BlockState
a(efg arg0, ego arg1)
setSideChainPart(BlockState arg0, SideChainPart arg1)
method_72617(class_2680 arg0, class_11598 arg1)
withSideChainPart(BlockState arg0, SideChainPart arg1)
public Direction
r(efg arg0)
getFacing(BlockState arg0)
method_72620(class_2680 arg0)
getFacing(BlockState arg0)
public boolean
s(efg arg0)
isConnectable(BlockState arg0)
method_72621(class_2680 arg0)
canChainWith(BlockState arg0)
public int
d()
getMaxChainLength()
method_72618()
getMaxSideChainLength()
protected void
a(efg arg0, dno arg1, jb arg2, efg arg3, boolean arg4)
onPlace(BlockState arg0, Level arg1, BlockPos arg2, BlockState arg3, boolean arg4)
method_9615(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
onBlockAdded(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
private void
a(dnp arg0, jb arg1, azf arg2)
playSound(LevelAccessor arg0, BlockPos arg1, SoundEvent arg2)
method_72616(class_1936 arg0, class_2338 arg1, class_3414 arg2)
playSound(WorldAccess world, BlockPos pos, SoundEvent sound)
protected FluidState
b_(efg arg0)
getFluidState(BlockState arg0)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)
protected BlockState
a(efg arg0, dnr arg1, dod arg2, jb arg3, jh arg4, jb arg5, efg arg6, bcr arg7)
updateShape(BlockState arg0, LevelReader arg1, ScheduledTickAccess arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, RandomSource arg7)
method_9559(class_2680 arg0, class_4538 arg1, class_10225 arg2, class_2338 arg3, class_2350 arg4, class_2338 arg5, class_2680 arg6, class_5819 arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
protected boolean
c_(efg arg0)
hasAnalogOutputSignal(BlockState arg0)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState arg0)
protected int
a(efg arg0, dno arg1, jb arg2, jh arg3)
getAnalogOutputSignal(BlockState arg0, Level arg1, BlockPos arg2, Direction arg3)
method_9572(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2350 arg3)
getComparatorOutput(BlockState arg0, World arg1, BlockPos arg2, Direction arg3)