Package net.minecraft.block
Class ChiseledBookshelfBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.BlockWithEntity
net.minecraft.block.ChiseledBookshelfBlock
- All Implemented Interfaces:
BlockEntityProvider,InteractibleSlotContainer,ItemConvertible,ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/block/ChiseledBookshelfBlockintermediary net/minecraft/class_7714official dwa
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intstatic final com.mojang.serialization.MapCodec<ChiseledBookshelfBlock> static final EnumProperty<Direction> private static final intstatic final BooleanPropertystatic final BooleanPropertystatic final BooleanPropertystatic final BooleanPropertystatic final BooleanPropertystatic final BooleanPropertystatic final List<BooleanProperty> Fields inherited from class net.minecraft.block.Block
field_31023, field_31024, field_31025, FORCE_STATE, FORCE_STATE_AND_SKIP_CALLBACKS_AND_DROPS, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_BLOCK_ADDED_CALLBACK, SKIP_BLOCK_ENTITY_REPLACED_CALLBACK, SKIP_DROPS, SKIP_REDRAW_AND_BLOCK_ENTITY_REPLACED_CALLBACK, SKIP_REDSTONE_WIRE_STATE_REPLACEMENT, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.com.mojang.serialization.MapCodec<ChiseledBookshelfBlock> getCodec()intprotected intgetComparatorOutput(BlockState state, World world, BlockPos pos, Direction direction) Returns the comparator output of the block, from0to15.intgetRows()protected booleanhasComparatorOutput(BlockState state) Returns whether the block can have a comparator output.mirror(BlockState state, BlockMirror mirror) Returnsstatemirrored bymirror.protected voidonStateReplaced(BlockState state, ServerWorld world, BlockPos pos, boolean moved) protected ActionResultonUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultonUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) rotate(BlockState state, BlockRotation rotation) Returnsstaterotated byrotation.private static voidtryAddBook(World world, BlockPos pos, PlayerEntity player, ChiseledBookshelfBlockEntity blockEntity, ItemStack stack, int slot) private static voidtryRemoveBook(World world, BlockPos pos, PlayerEntity player, ChiseledBookshelfBlockEntity blockEntity, int slot) Methods inherited from class net.minecraft.block.BlockWithEntity
createScreenHandlerFactory, onSyncedBlockEvent, validateTickerMethods inherited from class net.minecraft.block.Block
afterBreak, asBlock, asItem, canMobSpawnInside, cannotConnect, createColumnShape, createColumnShape, createCubeShape, createCuboidShape, createCuboidShape, createCuboidZShape, createCuboidZShape, createCuboidZShape, createShapeArray, createShapeFunction, createShapeFunction, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, generateBlockInteractLoot, generateLoot, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getRawIdFromState, getRegistryEntry, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createCodec, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getPickStack, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStateForNeighborUpdate, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasRandomTicks, hasSidedTransparency, isShapeFullCube, isSideInvisible, isTransparent, keepBlockEntityWhenReplacedWith, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, prepare, randomTick, scheduledTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.BlockEntityProvider
getGameEventListener, getTickerMethods inherited from interface net.minecraft.block.InteractibleSlotContainer
getHitSlotMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/ChiseledBookshelfBlock;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_46312Lnet/minecraft/class_7714;field_46312:Lcom/mojang/serialization/MapCodec;official aLdwa;a:Lcom/mojang/serialization/MapCodec;
-
FACING
- Mappings:
Namespace Name Mixin selector named FACINGLnet/minecraft/block/ChiseledBookshelfBlock;FACING:Lnet/minecraft/state/property/EnumProperty;intermediary field_61990Lnet/minecraft/class_7714;field_61990:Lnet/minecraft/class_2754;official bLdwa;b:Lekk;
-
SLOT_0_OCCUPIED
- Mappings:
Namespace Name Mixin selector named SLOT_0_OCCUPIEDLnet/minecraft/block/ChiseledBookshelfBlock;SLOT_0_OCCUPIED:Lnet/minecraft/state/property/BooleanProperty;intermediary field_61991Lnet/minecraft/class_7714;field_61991:Lnet/minecraft/class_2746;official cLdwa;c:Lekd;
-
SLOT_1_OCCUPIED
- Mappings:
Namespace Name Mixin selector named SLOT_1_OCCUPIEDLnet/minecraft/block/ChiseledBookshelfBlock;SLOT_1_OCCUPIED:Lnet/minecraft/state/property/BooleanProperty;intermediary field_61992Lnet/minecraft/class_7714;field_61992:Lnet/minecraft/class_2746;official dLdwa;d:Lekd;
-
SLOT_2_OCCUPIED
- Mappings:
Namespace Name Mixin selector named SLOT_2_OCCUPIEDLnet/minecraft/block/ChiseledBookshelfBlock;SLOT_2_OCCUPIED:Lnet/minecraft/state/property/BooleanProperty;intermediary field_61993Lnet/minecraft/class_7714;field_61993:Lnet/minecraft/class_2746;official eLdwa;e:Lekd;
-
SLOT_3_OCCUPIED
- Mappings:
Namespace Name Mixin selector named SLOT_3_OCCUPIEDLnet/minecraft/block/ChiseledBookshelfBlock;SLOT_3_OCCUPIED:Lnet/minecraft/state/property/BooleanProperty;intermediary field_61994Lnet/minecraft/class_7714;field_61994:Lnet/minecraft/class_2746;official fLdwa;f:Lekd;
-
SLOT_4_OCCUPIED
- Mappings:
Namespace Name Mixin selector named SLOT_4_OCCUPIEDLnet/minecraft/block/ChiseledBookshelfBlock;SLOT_4_OCCUPIED:Lnet/minecraft/state/property/BooleanProperty;intermediary field_61995Lnet/minecraft/class_7714;field_61995:Lnet/minecraft/class_2746;official gLdwa;g:Lekd;
-
SLOT_5_OCCUPIED
- Mappings:
Namespace Name Mixin selector named SLOT_5_OCCUPIEDLnet/minecraft/block/ChiseledBookshelfBlock;SLOT_5_OCCUPIED:Lnet/minecraft/state/property/BooleanProperty;intermediary field_61996Lnet/minecraft/class_7714;field_61996:Lnet/minecraft/class_2746;official hLdwa;h:Lekd;
-
MAX_BOOK_COUNT
private static final int MAX_BOOK_COUNT- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_BOOK_COUNTLnet/minecraft/block/ChiseledBookshelfBlock;MAX_BOOK_COUNT:Iintermediary field_41309Lnet/minecraft/class_7714;field_41309:Iofficial DLdwa;D:I
-
BOOK_HEIGHT
private static final int BOOK_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named BOOK_HEIGHTLnet/minecraft/block/ChiseledBookshelfBlock;BOOK_HEIGHT:Iintermediary field_41307Lnet/minecraft/class_7714;field_41307:Iofficial RLdwa;R:I
-
SLOT_OCCUPIED_PROPERTIES
- Mappings:
Namespace Name Mixin selector named SLOT_OCCUPIED_PROPERTIESLnet/minecraft/block/ChiseledBookshelfBlock;SLOT_OCCUPIED_PROPERTIES:Ljava/util/List;intermediary field_41308Lnet/minecraft/class_7714;field_41308:Ljava/util/List;official iLdwa;i:Ljava/util/List;
-
-
Constructor Details
-
ChiseledBookshelfBlock
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vofficial <init>Lejl;<init>(Lejl$d;)V
-
-
Method Details
-
getCodec
- Specified by:
getCodecin classBlockWithEntity- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_53969Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;official aLejl;a()Lcom/mojang/serialization/MapCodec;
-
getRows
public int getRows()- Specified by:
getRowsin interfaceInteractibleSlotContainer- Mappings:
Namespace Name Mixin selector named getRowsLnet/minecraft/block/InteractibleSlotContainer;getRows()Iintermediary method_72586Lnet/minecraft/class_11585;method_72586()Iofficial bLecf;b()I
-
getColumns
public int getColumns()- Specified by:
getColumnsin interfaceInteractibleSlotContainer- Mappings:
Namespace Name Mixin selector named getColumnsLnet/minecraft/block/InteractibleSlotContainer;getColumns()Iintermediary method_72587Lnet/minecraft/class_11585;method_72587()Iofficial cLecf;c()I
-
onUseWithItem
protected ActionResult onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) - Overrides:
onUseWithItemin classAbstractBlock- Mappings:
Namespace Name Mixin selector named onUseWithItemLnet/minecraft/block/AbstractBlock;onUseWithItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;intermediary method_55765Lnet/minecraft/class_4970;method_55765(Lnet/minecraft/class_1799;Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;official aLejl;a(Ldhp;Lejm;Ldrq;Lja;Lczl;Lcbp;Lfod;)Lcbq;
-
onUse
protected ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) - Overrides:
onUsein classAbstractBlock- Mappings:
Namespace Name Mixin selector named onUseLnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;intermediary method_55766Lnet/minecraft/class_4970;method_55766(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;official aLejl;a(Lejm;Ldrq;Lja;Lczl;Lfod;)Lcbq;
-
tryAddBook
private static void tryAddBook(World world, BlockPos pos, PlayerEntity player, ChiseledBookshelfBlockEntity blockEntity, ItemStack stack, int slot) - Mappings:
Namespace Name Mixin selector named tryAddBookLnet/minecraft/block/ChiseledBookshelfBlock;tryAddBook(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/block/entity/ChiseledBookshelfBlockEntity;Lnet/minecraft/item/ItemStack;I)Vintermediary method_45458Lnet/minecraft/class_7714;method_45458(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_7716;Lnet/minecraft/class_1799;I)Vofficial aLdwa;a(Ldrq;Lja;Lczl;Legq;Ldhp;I)V
-
tryRemoveBook
private static void tryRemoveBook(World world, BlockPos pos, PlayerEntity player, ChiseledBookshelfBlockEntity blockEntity, int slot) - Mappings:
Namespace Name Mixin selector named tryRemoveBookLnet/minecraft/block/ChiseledBookshelfBlock;tryRemoveBook(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/block/entity/ChiseledBookshelfBlockEntity;I)Vintermediary method_45457Lnet/minecraft/class_7714;method_45457(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_7716;I)Vofficial aLdwa;a(Ldrq;Lja;Lczl;Legq;I)V
-
createBlockEntity
Returns a new block entity instance.For example:
@Override public BlockEntity createBlockEntity(BlockPos pos, BlockState state) { return new MyBlockEntity(pos, state); }- Specified by:
createBlockEntityin interfaceBlockEntityProvider- Returns:
- a new block entity instance
- Implementation Note:
- While this is marked as nullable, in practice this should never return
null.PistonExtensionBlockis the only block in vanilla that returnsnullinside the implementation. - Mappings:
Namespace Name Mixin selector named createBlockEntityLnet/minecraft/block/BlockEntityProvider;createBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/entity/BlockEntity;intermediary method_10123Lnet/minecraft/class_2343;method_10123(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2586;official aLdxs;a(Lja;Lejm;)Legg;
-
appendProperties
Appends block state properties to this block. To use this, override and callStateManager.Builder.add(net.minecraft.state.property.Property<?>[])inside the method. SeePropertiesfor the list of pre-defined properties.- Overrides:
appendPropertiesin classBlock- Mappings:
Namespace Name Mixin selector named appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vofficial aLduv;a(Lejn$a;)V
-
onStateReplaced
- Overrides:
onStateReplacedin classAbstractBlock- Mappings:
Namespace Name Mixin selector named onStateReplacedLnet/minecraft/block/AbstractBlock;onStateReplaced(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Z)Vintermediary method_66388Lnet/minecraft/class_4970;method_66388(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Z)Vofficial aLejl;a(Lejm;Lawx;Lja;Z)V
-
getPlacementState
- Overrides:
getPlacementStatein classBlock- Mappings:
Namespace Name Mixin selector named getPlacementStateLnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;intermediary method_9605Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;official aLduv;a(Ldlk;)Lejm;
-
rotate
Returnsstaterotated byrotation.By default, this returns the provided block state.
- Overrides:
rotatein classAbstractBlock- Returns:
staterotated byrotation- See Also:
- Mappings:
Namespace Name Mixin selector named rotateLnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;intermediary method_9598Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;official aLejl;a(Lejm;Lebr;)Lejm;
-
mirror
Returnsstatemirrored bymirror.By default, this returns the provided block state.
- Overrides:
mirrorin classAbstractBlock- Returns:
statemirrored bymirror- See Also:
- Mappings:
Namespace Name Mixin selector named mirrorLnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;intermediary method_9569Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;official aLejl;a(Lejm;Leaa;)Lejm;
-
hasComparatorOutput
Returns whether the block can have a comparator output.This does not check the current comparator output of the block. Use
getComparatorOutput(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.util.math.Direction)in that case.- Overrides:
hasComparatorOutputin classAbstractBlock- Returns:
- whether the block can have a comparator output
- See Also:
- Mappings:
Namespace Name Mixin selector named hasComparatorOutputLnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)Zintermediary method_9498Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Zofficial c_Lejl;c_(Lejm;)Z
-
getComparatorOutput
Returns the comparator output of the block, from0to15.When overriding this,
hasComparatorOutput(net.minecraft.block.BlockState)must also be overridden.- Overrides:
getComparatorOutputin classAbstractBlock- Returns:
- the comparator output of the block, from
0to15 - See Also:
- Mappings:
Namespace Name Mixin selector named getComparatorOutputLnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Iintermediary method_9572Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Iofficial aLejl;a(Lejm;Ldrq;Lja;Ljg;)I
-