Package net.minecraft.world.level.block
Class ShulkerBoxBlock
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.ShulkerBoxBlock
- All Implemented Interfaces:
- FeatureElement,- EntityBlock,- ItemLike,- IBlockExtension
- 
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 com.mojang.serialization.MapCodec<ShulkerBoxBlock> private final DyeColorstatic final ResourceLocationprivate static final VoxelShapeprivate static final VoxelShapestatic final EnumProperty<Direction> private static final VoxelShapeprivate static final floatprivate static final Map<Direction, VoxelShape> private static final VoxelShapeprivate static final Componentprivate static final VoxelShapeprivate static final VoxelShapeFields 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 TypeMethodDescriptionvoidappendHoverText(ItemStack p_56193_, Item.TooltipContext p_339693_, List<Component> p_56195_, TooltipFlag p_56196_) private static booleancanOpen(BlockState p_154547_, Level p_154548_, BlockPos p_154549_, ShulkerBoxBlockEntity p_154550_) com.mojang.serialization.MapCodec<ShulkerBoxBlock> codec()protected voidprotected intgetAnalogOutputSignal(BlockState p_56223_, Level p_56224_, BlockPos p_56225_) static BlockgetBlockByColor(DyeColor p_56191_) protected VoxelShapegetBlockSupportShape(BlockState p_259177_, BlockGetter p_260305_, BlockPos p_259168_) getCloneItemStack(LevelReader p_304539_, BlockPos p_56203_, BlockState p_56204_) getColor()static ItemStackgetColoredItemStack(DyeColor p_56251_) static DyeColorgetColorFromBlock(Block p_56263_) static DyeColorgetColorFromItem(Item p_56253_) getDrops(BlockState p_287632_, LootParams.Builder p_287691_) protected RenderShapegetRenderShape(BlockState p_56255_) protected VoxelShapegetShape(BlockState p_56257_, BlockGetter p_56258_, BlockPos p_56259_, CollisionContext p_56260_) getStateForPlacement(BlockPlaceContext p_56198_) <T extends BlockEntity>
 BlockEntityTicker<T> getTicker(Level p_154543_, BlockState p_154544_, BlockEntityType<T> p_154545_) protected booleanhasAnalogOutputSignal(BlockState p_56221_) protected BlockStatemirror(BlockState p_56240_, Mirror p_56241_) newBlockEntity(BlockPos p_154552_, BlockState p_154553_) protected voidonRemove(BlockState p_56234_, Level p_56235_, BlockPos p_56236_, BlockState p_56237_, boolean p_56238_) playerWillDestroy(Level p_56212_, BlockPos p_56213_, BlockState p_56214_, Player p_56215_) protected booleanpropagatesSkylightDown(BlockState p_341628_, BlockGetter p_341633_, BlockPos p_341694_) protected BlockStaterotate(BlockState p_56243_, Rotation p_56244_) protected InteractionResultuseWithoutItem(BlockState p_56227_, Level p_56228_, BlockPos p_56229_, Player p_56230_, BlockHitResult p_56232_) Methods inherited from class net.minecraft.world.level.block.BaseEntityBlockcreateTickerHelper, getMenuProvider, triggerEventMethods inherited from class net.minecraft.world.level.block.BlockanimateTick, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, popExperience, popResource, popResourceFromFace, 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, getCollisionShape, getDestroyProgress, getDirectSignal, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, neighborChanged, onExplosionHit, onPlace, onProjectileHit, properties, propertiesCodec, randomTick, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, tick, updateIndirectNeighbourShapes, updateShape, useItemOn, useShapeForLightOcclusionMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.block.EntityBlockgetListenerMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockExtensionaddLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getBubbleColumnDirection, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasDynamicLightEmission, hidesNeighborFace, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHiding
- 
Field Details- 
CODEC
- 
UNKNOWN_CONTENTS
- 
OPEN_AABB_SIZEprivate static final float OPEN_AABB_SIZE- See Also:
 
- 
UP_OPEN_AABB
- 
DOWN_OPEN_AABB
- 
WES_OPEN_AABB
- 
EAST_OPEN_AABB
- 
NORTH_OPEN_AABB
- 
SOUTH_OPEN_AABB
- 
OPEN_SHAPE_BY_DIRECTION
- 
FACING
- 
CONTENTS
- 
color
 
- 
- 
Constructor Details- 
ShulkerBoxBlock
 
- 
- 
Method Details- 
codec- Specified by:
- codecin class- BaseEntityBlock
 
- 
newBlockEntity
- 
getTicker@Nullable public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level p_154543_, BlockState p_154544_, BlockEntityType<T> p_154545_) 
- 
getRenderShape- Overrides:
- getRenderShapein class- BaseEntityBlock
 
- 
useWithoutItemprotected InteractionResult useWithoutItem(BlockState p_56227_, Level p_56228_, BlockPos p_56229_, Player p_56230_, BlockHitResult p_56232_) - Overrides:
- useWithoutItemin class- BlockBehaviour
 
- 
canOpenprivate static boolean canOpen(BlockState p_154547_, Level p_154548_, BlockPos p_154549_, ShulkerBoxBlockEntity p_154550_) 
- 
getStateForPlacement- Overrides:
- getStateForPlacementin class- Block
 
- 
createBlockStateDefinition- Overrides:
- createBlockStateDefinitionin class- Block
 
- 
playerWillDestroypublic BlockState playerWillDestroy(Level p_56212_, BlockPos p_56213_, BlockState p_56214_, Player p_56215_) - Overrides:
- playerWillDestroyin class- Block
 
- 
getDrops- Overrides:
- getDropsin class- BlockBehaviour
 
- 
onRemoveprotected void onRemove(BlockState p_56234_, Level p_56235_, BlockPos p_56236_, BlockState p_56237_, boolean p_56238_) - Overrides:
- onRemovein class- BlockBehaviour
 
- 
appendHoverTextpublic void appendHoverText(ItemStack p_56193_, Item.TooltipContext p_339693_, List<Component> p_56195_, TooltipFlag p_56196_) - Overrides:
- appendHoverTextin class- Block
 
- 
getBlockSupportShapeprotected VoxelShape getBlockSupportShape(BlockState p_259177_, BlockGetter p_260305_, BlockPos p_259168_) - Overrides:
- getBlockSupportShapein class- BlockBehaviour
 
- 
getShapeprotected VoxelShape getShape(BlockState p_56257_, BlockGetter p_56258_, BlockPos p_56259_, CollisionContext p_56260_) - Overrides:
- getShapein class- BlockBehaviour
 
- 
propagatesSkylightDownprotected boolean propagatesSkylightDown(BlockState p_341628_, BlockGetter p_341633_, BlockPos p_341694_) - Overrides:
- propagatesSkylightDownin class- BlockBehaviour
 
- 
hasAnalogOutputSignal- Overrides:
- hasAnalogOutputSignalin class- BlockBehaviour
 
- 
getAnalogOutputSignal- Overrides:
- getAnalogOutputSignalin class- BlockBehaviour
 
- 
getCloneItemStack- Overrides:
- getCloneItemStackin class- Block
 
- 
getColorFromItem
- 
getColorFromBlock
- 
getBlockByColor
- 
getColor
- 
getColoredItemStack
- 
rotate- Overrides:
- rotatein class- BlockBehaviour
 
- 
mirror- Overrides:
- mirrorin class- BlockBehaviour
 
 
-