net.minecraft.block

public class ChiseledBookshelfBlock

extends BlockWithEntity implements InteractibleSlotContainer

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, BlockEntityProvider, InteractibleSlotContainer

net.minecraft.world.level.block.ChiseledBookShelfBlock
net.minecraft.class_7714
net.minecraft.block.ChiseledBookshelfBlock

Field summary

Modifier and TypeField
public static final EnumProperty<Direction>
FACING
field_61990
FACING
public static final BooleanProperty
SLOT_0_OCCUPIED
field_61991
SLOT_0_OCCUPIED
public static final BooleanProperty
SLOT_1_OCCUPIED
field_61992
SLOT_1_OCCUPIED
public static final BooleanProperty
SLOT_2_OCCUPIED
field_61993
SLOT_2_OCCUPIED
public static final BooleanProperty
SLOT_3_OCCUPIED
field_61994
SLOT_3_OCCUPIED
public static final BooleanProperty
SLOT_4_OCCUPIED
field_61995
SLOT_4_OCCUPIED
public static final BooleanProperty
SLOT_5_OCCUPIED
field_61996
SLOT_5_OCCUPIED
private static final int
MAX_BOOKS_IN_STORAGE
field_41309
MAX_BOOK_COUNT
private static final int
BOOKS_PER_ROW
field_41307
BOOK_HEIGHT
public static final List<BooleanProperty>
SLOT_OCCUPIED_PROPERTIES
field_41308
SLOT_OCCUPIED_PROPERTIES

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public int
getRows()
method_72586()
getRows()
public int
getColumns()
method_72587()
getColumns()
protected ActionResult
useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult)
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)
protected ActionResult
useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult)
method_55766(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3, class_3965 arg4)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
private static void
addBook(Level level, BlockPos pos, Player player, ChiseledBookShelfBlockEntity bookshelfBlock, ItemStack itemStack, int slot)
method_45458(class_1937 arg0, class_2338 arg1, class_1657 arg2, class_7716 arg3, class_1799 arg4, int arg5)
tryAddBook(World world, BlockPos pos, PlayerEntity player, ChiseledBookshelfBlockEntity blockEntity, ItemStack stack, int slot)
private static void
removeBook(Level level, BlockPos pos, Player player, ChiseledBookShelfBlockEntity bookshelfBlock, int slot)
method_45457(class_1937 arg0, class_2338 arg1, class_1657 arg2, class_7716 arg3, int arg4)
tryRemoveBook(World world, BlockPos pos, PlayerEntity player, ChiseledBookshelfBlockEntity blockEntity, int slot)
public BlockEntity
newBlockEntity(BlockPos worldPosition, BlockState blockState)
method_10123(class_2338 arg0, class_2680 arg1)
createBlockEntity(BlockPos arg0, BlockState arg1)
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected void
affectNeighborsAfterRemoval(BlockState state, ServerLevel level, BlockPos pos, boolean movedByPiston)
method_66388(class_2680 arg0, class_3218 arg1, class_2338 arg2, boolean arg3)
onStateReplaced(BlockState arg0, ServerWorld arg1, BlockPos arg2, boolean arg3)
public BlockState
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
public BlockState
rotate(BlockState state, Rotation rotation)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
public BlockState
mirror(BlockState state, Mirror mirror)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
protected boolean
hasAnalogOutputSignal(BlockState state)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState arg0)
protected int
getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction)
method_9572(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2350 arg3)
getComparatorOutput(BlockState arg0, World arg1, BlockPos arg2, Direction arg3)
private static void
lambda$createBlockStateDefinition$0(StateDefinition$Builder arg0, Property arg1)
method_47578(class_2689$class_2690 arg0, class_2769 arg1)
method_47578(StateManager$Builder arg0, Property property)