Package net.minecraft.world.level.block
Class ChestBlock
- All Implemented Interfaces:
- FeatureElement,- BucketPickup,- EntityBlock,- LiquidBlockContainer,- SimpleWaterloggedBlock,- ItemLike,- IForgeBlock,- IForgeBucketPickup
- Direct Known Subclasses:
- TrappedChestBlock
public class ChestBlock
extends AbstractChestBlock<ChestBlockEntity>
implements SimpleWaterloggedBlock
- 
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 TypeFieldDescriptionprotected static final VoxelShapeprotected static final intprotected static final intprivate static final DoubleBlockCombiner.Combiner<ChestBlockEntity,Optional<Container>> protected static final VoxelShapestatic final intstatic final DirectionPropertyprivate static final DoubleBlockCombiner.Combiner<ChestBlockEntity,Optional<MenuProvider>> protected static final VoxelShapeprotected static final VoxelShapestatic final EnumProperty<ChestType>static final BooleanPropertyprotected static final VoxelShapeFields inherited from class net.minecraft.world.level.block.AbstractChestBlockblockEntityTypeFields 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 SummaryConstructorsConstructorDescriptionChestBlock(BlockBehaviour.Properties p_51490_, Supplier<BlockEntityType<? extends ChestBlockEntity>> p_51491_) 
- 
Method SummaryModifier and TypeMethodDescriptionBlockEntityType<? extends ChestBlockEntity>private DirectioncandidatePartnerFacing(BlockPlaceContext p_51495_, Direction p_51496_) combine(BlockState p_51544_, Level p_51545_, BlockPos p_51546_, boolean p_51547_) protected voidintgetAnalogOutputSignal(BlockState p_51527_, Level p_51528_, BlockPos p_51529_) getBlockType(BlockState p_51583_) static DirectiongetConnectedDirection(BlockState p_51585_) static ContainergetContainer(ChestBlock p_51512_, BlockState p_51513_, Level p_51514_, BlockPos p_51515_, boolean p_51516_) getFluidState(BlockState p_51581_) getMenuProvider(BlockState p_51574_, Level p_51575_, BlockPos p_51576_) protected Stat<ResourceLocation>getRenderShape(BlockState p_51567_) getShape(BlockState p_51569_, BlockGetter p_51570_, BlockPos p_51571_, CollisionContext p_51572_) getStateForPlacement(BlockPlaceContext p_51493_) <T extends BlockEntity>
 BlockEntityTicker<T>getTicker(Level p_153055_, BlockState p_153056_, BlockEntityType<T> p_153057_) booleanhasAnalogOutputSignal(BlockState p_51520_) private static booleanisBlockedChestByBlock(BlockGetter p_51500_, BlockPos p_51501_) private static booleanisCatSittingOnChest(LevelAccessor p_51564_, BlockPos p_51565_) static booleanisChestBlockedAt(LevelAccessor p_51509_, BlockPos p_51510_) booleanisPathfindable(BlockState p_51522_, BlockGetter p_51523_, BlockPos p_51524_, PathComputationType p_51525_) mirror(BlockState p_51549_, Mirror p_51550_) newBlockEntity(BlockPos p_153064_, BlockState p_153065_) voidonRemove(BlockState p_51538_, Level p_51539_, BlockPos p_51540_, BlockState p_51541_, boolean p_51542_) static DoubleBlockCombiner.Combiner<ChestBlockEntity,it.unimi.dsi.fastutil.floats.Float2FloatFunction> opennessCombiner(LidBlockEntity p_51518_) rotate(BlockState p_51552_, Rotation p_51553_) voidsetPlacedBy(Level p_51503_, BlockPos p_51504_, BlockState p_51505_, LivingEntity p_51506_, ItemStack p_51507_) voidtick(BlockState p_220958_, ServerLevel p_220959_, BlockPos p_220960_, RandomSource p_220961_) updateShape(BlockState p_51555_, Direction p_51556_, BlockState p_51557_, LevelAccessor p_51558_, BlockPos p_51559_, BlockPos p_51560_) use(BlockState p_51531_, Level p_51532_, BlockPos p_51533_, Player p_51534_, InteractionHand p_51535_, BlockHitResult p_51536_) Methods inherited from class net.minecraft.world.level.block.BaseEntityBlockcreateTickerHelper, 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, 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, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getSeed, getShadeBrightness, getSignal, getVisualShape, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isSignalSource, neighborChanged, onPlace, onProjectileHit, randomTick, requiredFeatures, skipRendering, spawnAfterBreak, updateIndirectNeighbourShapes, 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.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, supportsExternalFaceHidingMethods inherited from interface net.minecraftforge.common.extensions.IForgeBucketPickupgetPickupSoundMethods inherited from interface net.minecraft.world.level.block.SimpleWaterloggedBlockcanPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
- 
Field Details- 
FACING
- 
TYPE
- 
WATERLOGGED
- 
EVENT_SET_OPEN_COUNTpublic static final int EVENT_SET_OPEN_COUNT- See Also:
 
- 
AABB_OFFSETprotected static final int AABB_OFFSET- See Also:
 
- 
AABB_HEIGHTprotected static final int AABB_HEIGHT- See Also:
 
- 
NORTH_AABB
- 
SOUTH_AABB
- 
WEST_AABB
- 
EAST_AABB
- 
AABB
- 
CHEST_COMBINERprivate static final DoubleBlockCombiner.Combiner<ChestBlockEntity,Optional<Container>> CHEST_COMBINER
- 
MENU_PROVIDER_COMBINERprivate static final DoubleBlockCombiner.Combiner<ChestBlockEntity,Optional<MenuProvider>> MENU_PROVIDER_COMBINER
 
- 
- 
Constructor Details- 
ChestBlockpublic ChestBlock(BlockBehaviour.Properties p_51490_, Supplier<BlockEntityType<? extends ChestBlockEntity>> p_51491_) 
 
- 
- 
Method Details- 
getBlockType
- 
getRenderShape- Overrides:
- getRenderShapein class- BaseEntityBlock
 
- 
updateShapepublic BlockState updateShape(BlockState p_51555_, Direction p_51556_, BlockState p_51557_, LevelAccessor p_51558_, BlockPos p_51559_, BlockPos p_51560_) - Overrides:
- updateShapein class- BlockBehaviour
 
- 
getShapepublic VoxelShape getShape(BlockState p_51569_, BlockGetter p_51570_, BlockPos p_51571_, CollisionContext p_51572_) - Overrides:
- getShapein class- BlockBehaviour
 
- 
getConnectedDirection
- 
getStateForPlacement- Overrides:
- getStateForPlacementin class- Block
 
- 
getFluidState- Overrides:
- getFluidStatein class- BlockBehaviour
 
- 
candidatePartnerFacing
- 
setPlacedBypublic void setPlacedBy(Level p_51503_, BlockPos p_51504_, BlockState p_51505_, LivingEntity p_51506_, ItemStack p_51507_) - Overrides:
- setPlacedByin class- Block
 
- 
onRemovepublic void onRemove(BlockState p_51538_, Level p_51539_, BlockPos p_51540_, BlockState p_51541_, boolean p_51542_) - Overrides:
- onRemovein class- BlockBehaviour
 
- 
usepublic InteractionResult use(BlockState p_51531_, Level p_51532_, BlockPos p_51533_, Player p_51534_, InteractionHand p_51535_, BlockHitResult p_51536_) - Overrides:
- usein class- BlockBehaviour
 
- 
getOpenChestStat
- 
blockEntityType
- 
getContainer@Nullable public static Container getContainer(ChestBlock p_51512_, BlockState p_51513_, Level p_51514_, BlockPos p_51515_, boolean p_51516_) 
- 
combinepublic DoubleBlockCombiner.NeighborCombineResult<? extends ChestBlockEntity> combine(BlockState p_51544_, Level p_51545_, BlockPos p_51546_, boolean p_51547_) - Specified by:
- combinein class- AbstractChestBlock<ChestBlockEntity>
 
- 
getMenuProvider@Nullable public MenuProvider getMenuProvider(BlockState p_51574_, Level p_51575_, BlockPos p_51576_) - Overrides:
- getMenuProviderin class- BaseEntityBlock
 
- 
opennessCombinerpublic static DoubleBlockCombiner.Combiner<ChestBlockEntity,it.unimi.dsi.fastutil.floats.Float2FloatFunction> opennessCombiner(LidBlockEntity p_51518_) 
- 
newBlockEntity- Specified by:
- newBlockEntityin interface- EntityBlock
 
- 
getTicker@Nullable public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level p_153055_, BlockState p_153056_, BlockEntityType<T> p_153057_) - Specified by:
- getTickerin interface- EntityBlock
 
- 
isChestBlockedAt
- 
isBlockedChestByBlock
- 
isCatSittingOnChest
- 
hasAnalogOutputSignal- Overrides:
- hasAnalogOutputSignalin class- BlockBehaviour
 
- 
getAnalogOutputSignal- Overrides:
- getAnalogOutputSignalin class- BlockBehaviour
 
- 
rotate- Overrides:
- rotatein class- BlockBehaviour
 
- 
mirror- Overrides:
- mirrorin class- BlockBehaviour
 
- 
createBlockStateDefinition- Overrides:
- createBlockStateDefinitionin class- Block
 
- 
isPathfindablepublic boolean isPathfindable(BlockState p_51522_, BlockGetter p_51523_, BlockPos p_51524_, PathComputationType p_51525_) - Overrides:
- isPathfindablein class- BlockBehaviour
 
- 
tickpublic void tick(BlockState p_220958_, ServerLevel p_220959_, BlockPos p_220960_, RandomSource p_220961_) - Overrides:
- tickin class- BlockBehaviour
 
 
-