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 Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
Block.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate -
Field Summary
FieldsModifier 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.Block
BLOCK_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.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier 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.BaseEntityBlock
createTickerHelper, getMenuProvider, triggerEventMethods inherited from class net.minecraft.world.level.block.Block
animateTick, 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.BlockBehaviour
attack, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.block.EntityBlock
getListenerMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockExtension
addLandingEffects, 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_SIZE
private 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 classBaseEntityBlock
-
newBlockEntity
-
getTicker
@Nullable public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level p_154543_, BlockState p_154544_, BlockEntityType<T> p_154545_) -
getRenderShape
- Overrides:
getRenderShapein classBaseEntityBlock
-
useWithoutItem
protected InteractionResult useWithoutItem(BlockState p_56227_, Level p_56228_, BlockPos p_56229_, Player p_56230_, BlockHitResult p_56232_) - Overrides:
useWithoutItemin classBlockBehaviour
-
canOpen
private static boolean canOpen(BlockState p_154547_, Level p_154548_, BlockPos p_154549_, ShulkerBoxBlockEntity p_154550_) -
getStateForPlacement
- Overrides:
getStateForPlacementin classBlock
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinitionin classBlock
-
playerWillDestroy
public BlockState playerWillDestroy(Level p_56212_, BlockPos p_56213_, BlockState p_56214_, Player p_56215_) - Overrides:
playerWillDestroyin classBlock
-
getDrops
- Overrides:
getDropsin classBlockBehaviour
-
onRemove
protected void onRemove(BlockState p_56234_, Level p_56235_, BlockPos p_56236_, BlockState p_56237_, boolean p_56238_) - Overrides:
onRemovein classBlockBehaviour
-
appendHoverText
public void appendHoverText(ItemStack p_56193_, Item.TooltipContext p_339693_, List<Component> p_56195_, TooltipFlag p_56196_) - Overrides:
appendHoverTextin classBlock
-
getBlockSupportShape
protected VoxelShape getBlockSupportShape(BlockState p_259177_, BlockGetter p_260305_, BlockPos p_259168_) - Overrides:
getBlockSupportShapein classBlockBehaviour
-
getShape
protected VoxelShape getShape(BlockState p_56257_, BlockGetter p_56258_, BlockPos p_56259_, CollisionContext p_56260_) - Overrides:
getShapein classBlockBehaviour
-
propagatesSkylightDown
protected boolean propagatesSkylightDown(BlockState p_341628_, BlockGetter p_341633_, BlockPos p_341694_) - Overrides:
propagatesSkylightDownin classBlockBehaviour
-
hasAnalogOutputSignal
- Overrides:
hasAnalogOutputSignalin classBlockBehaviour
-
getAnalogOutputSignal
- Overrides:
getAnalogOutputSignalin classBlockBehaviour
-
getCloneItemStack
- Overrides:
getCloneItemStackin classBlock
-
getColorFromItem
-
getColorFromBlock
-
getBlockByColor
-
getColor
-
getColoredItemStack
-
rotate
- Overrides:
rotatein classBlockBehaviour
-
mirror
- Overrides:
mirrorin classBlockBehaviour
-