Package net.minecraft.world.level.block
Class ChiseledBookShelfBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseEntityBlock
net.minecraft.world.level.block.ChiseledBookShelfBlock
- All Implemented Interfaces:
- FeatureElement,- EntityBlock,- ItemLike,- IForgeBlock
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.level.block.BlockBlock.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviourBlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intprivate static final intstatic final List<BooleanProperty>Fields inherited from class net.minecraft.world.level.block.BlockBLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviourdrops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElementFILTERED_REGISTRIES
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static voidaddBook(Level p_262592_, BlockPos p_262669_, Player p_262572_, ChiseledBookShelfBlockEntity p_262606_, ItemStack p_262587_, int p_262692_) protected voidintgetAnalogOutputSignal(BlockState p_249192_, Level p_252207_, BlockPos p_248999_) private static intgetHitSlot(Vec2 p_261991_) getRelativeHitCoordinatesForBlockFace(BlockHitResult p_261714_, Direction p_262116_) getRenderShape(BlockState p_251274_) private static intgetSection(float p_261599_) getStateForPlacement(BlockPlaceContext p_251318_) booleanhasAnalogOutputSignal(BlockState p_249302_) mirror(BlockState p_289000_, Mirror p_288962_) newBlockEntity(BlockPos p_250440_, BlockState p_248729_) voidonRemove(BlockState p_250071_, Level p_251485_, BlockPos p_251954_, BlockState p_251852_, boolean p_252250_) private static voidremoveBook(Level p_262654_, BlockPos p_262601_, Player p_262636_, ChiseledBookShelfBlockEntity p_262605_, int p_262673_) rotate(BlockState p_288975_, Rotation p_288993_) use(BlockState p_251144_, Level p_251668_, BlockPos p_249108_, Player p_249954_, InteractionHand p_249823_, BlockHitResult p_250640_) Methods inherited from class net.minecraft.world.level.block.BaseEntityBlockcreateTickerHelper, getMenuProvider, triggerEventMethods inherited from class net.minecraft.world.level.block.BlockanimateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviourattack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getSeed, getShadeBrightness, getShape, getSignal, getVisualShape, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isSignalSource, neighborChanged, onPlace, onProjectileHit, randomTick, requiredFeatures, skipRendering, spawnAfterBreak, tick, updateIndirectNeighbourShapes, updateShape, useShapeForLightOcclusionMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.block.EntityBlockgetListener, getTickerMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockaddLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHiding
- 
Field Details- 
MAX_BOOKS_IN_STORAGEprivate static final int MAX_BOOKS_IN_STORAGE- See Also:
 
- 
BOOKS_PER_ROWpublic static final int BOOKS_PER_ROW- See Also:
 
- 
SLOT_OCCUPIED_PROPERTIES
 
- 
- 
Constructor Details- 
ChiseledBookShelfBlock
 
- 
- 
Method Details- 
getRenderShape- Overrides:
- getRenderShapein class- BaseEntityBlock
 
- 
usepublic InteractionResult use(BlockState p_251144_, Level p_251668_, BlockPos p_249108_, Player p_249954_, InteractionHand p_249823_, BlockHitResult p_250640_) - Overrides:
- usein class- BlockBehaviour
 
- 
getRelativeHitCoordinatesForBlockFaceprivate static Optional<Vec2> getRelativeHitCoordinatesForBlockFace(BlockHitResult p_261714_, Direction p_262116_) 
- 
getHitSlot
- 
getSectionprivate static int getSection(float p_261599_) 
- 
addBookprivate static void addBook(Level p_262592_, BlockPos p_262669_, Player p_262572_, ChiseledBookShelfBlockEntity p_262606_, ItemStack p_262587_, int p_262692_) 
- 
removeBookprivate static void removeBook(Level p_262654_, BlockPos p_262601_, Player p_262636_, ChiseledBookShelfBlockEntity p_262605_, int p_262673_) 
- 
newBlockEntity
- 
createBlockStateDefinition- Overrides:
- createBlockStateDefinitionin class- Block
 
- 
onRemovepublic void onRemove(BlockState p_250071_, Level p_251485_, BlockPos p_251954_, BlockState p_251852_, boolean p_252250_) - Overrides:
- onRemovein class- BlockBehaviour
 
- 
getStateForPlacement- Overrides:
- getStateForPlacementin class- Block
 
- 
rotate- Overrides:
- rotatein class- BlockBehaviour
 
- 
mirror- Overrides:
- mirrorin class- BlockBehaviour
 
- 
hasAnalogOutputSignal- Overrides:
- hasAnalogOutputSignalin class- BlockBehaviour
 
- 
getAnalogOutputSignal- Overrides:
- getAnalogOutputSignalin class- BlockBehaviour
 
 
-