net.minecraft.world.level.block

public class ChestBlock

extends AbstractChestBlock<ChestBlockEntity> implements SimpleWaterloggedBlock

All mapped superinterfaces:

FeatureElement, ItemLike, EntityBlock, SimpleWaterloggedBlock, BucketPickup, LiquidBlockContainer

dmx
net.minecraft.world.level.block.ChestBlock
net.minecraft.class_2281
net.minecraft.block.ChestBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<ChestBlock>
b
CODEC
field_46311
CODEC
public static final EnumProperty<Direction>
c
FACING
field_10768
FACING
public static final EnumProperty<ChestType>
d
TYPE
field_10770
CHEST_TYPE
public static final BooleanProperty
e
WATERLOGGED
field_10772
WATERLOGGED
public static final int
f
EVENT_SET_OPEN_COUNT
field_31057
field_31057
private static final VoxelShape
g
SHAPE
field_55747
SINGLE_SHAPE
private static final Map<Direction, VoxelShape>
h
HALF_SHAPES
field_55748
DOUBLE_SHAPES_BY_DIRECTION
private static final DoubleBlockCombiner$Combiner<ChestBlockEntity, Optional<Container>>
i
CHEST_COMBINER
field_17356
INVENTORY_RETRIEVER
private static final DoubleBlockCombiner$Combiner<ChestBlockEntity, Optional<MenuProvider>>
C
MENU_PROVIDER_COMBINER
field_17357
NAME_RETRIEVER

Constructor summary

ModifierConstructor
protected (Supplier<BlockEntityType<? extends ChestBlockEntity>> blockEntityTypeSupplier, BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<? extends ChestBlock>
a()
codec()
method_53969()
getCodec()
public static DoubleBlockCombiner$BlockType
h(dzo arg0)
getBlockType(BlockState arg0)
method_24169(class_2680 arg0)
getDoubleBlockType(BlockState state)
protected BlockState
a(dzo arg0, dis arg1, dje arg2, iu arg3, ja arg4, iu arg5, dzo arg6, azt arg7)
updateShape(BlockState arg0, LevelReader arg1, ScheduledTickAccess arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, RandomSource arg7)
method_9559(class_2680 arg0, class_4538 arg1, class_10225 arg2, class_2338 arg3, class_2350 arg4, class_2338 arg5, class_2680 arg6, class_5819 arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
protected VoxelShape
a(dzo arg0, dhv arg1, iu arg2, feb arg3)
getShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
public static Direction
i(dzo arg0)
getConnectedDirection(BlockState arg0)
method_9758(class_2680 arg0)
getFacing(BlockState state)
public BlockState
a(dcl arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
protected FluidState
b_(dzo arg0)
getFluidState(BlockState arg0)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)
private Direction
a(dcl arg0, ja arg1)
candidatePartnerFacing(BlockPlaceContext arg0, Direction arg1)
method_9753(class_1750 arg0, class_2350 arg1)
getNeighborChestDirection(ItemPlacementContext ctx, Direction dir)
protected void
a(dzo arg0, aro arg1, iu arg2, boolean arg3)
affectNeighborsAfterRemoval(BlockState arg0, ServerLevel arg1, BlockPos arg2, boolean arg3)
method_66388(class_2680 arg0, class_3218 arg1, class_2338 arg2, boolean arg3)
onStateReplaced(BlockState arg0, ServerWorld arg1, BlockPos arg2, boolean arg3)
protected InteractionResult
a(dzo arg0, dip arg1, iu arg2, cqs arg3, fds arg4)
useWithoutItem(BlockState arg0, Level arg1, BlockPos arg2, Player arg3, BlockHitResult arg4)
method_55766(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3, class_3965 arg4)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
protected Stat<ResourceLocation>
c()
getOpenChestStat()
method_9755()
getOpenStat()
public BlockEntityType<? extends ChestBlockEntity>
d()
blockEntityType()
method_31641()
getExpectedEntityType()
public static Container
a(dmx arg0, dzo arg1, dip arg2, iu arg3, boolean arg4)
getContainer(ChestBlock arg0, BlockState arg1, Level arg2, BlockPos arg3, boolean arg4)
method_17458(class_2281 arg0, class_2680 arg1, class_1937 arg2, class_2338 arg3, boolean arg4)
getInventory(ChestBlock block, BlockState state, World world, BlockPos pos, boolean ignoreBlocked)
public DoubleBlockCombiner$NeighborCombineResult<? extends ChestBlockEntity>
a(dzo arg0, dip arg1, iu arg2, boolean arg3)
combine(BlockState arg0, Level arg1, BlockPos arg2, boolean arg3)
method_24167(class_2680 arg0, class_1937 arg1, class_2338 arg2, boolean arg3)
getBlockEntitySource(BlockState arg0, World arg1, BlockPos arg2, boolean arg3)
protected MenuProvider
b(dzo arg0, dip arg1, iu arg2)
getMenuProvider(BlockState arg0, Level arg1, BlockPos arg2)
method_17454(class_2680 arg0, class_1937 arg1, class_2338 arg2)
createScreenHandlerFactory(BlockState arg0, World arg1, BlockPos arg2)
public static DoubleBlockCombiner$Combiner<ChestBlockEntity, it.unimi.dsi.fastutil.floats.Float2FloatFunction>
a(dxu arg0)
opennessCombiner(LidBlockEntity arg0)
method_24166(class_2618 arg0)
getAnimationProgressRetriever(LidOpenable progress)
public BlockEntity
a(iu arg0, dzo arg1)
newBlockEntity(BlockPos arg0, BlockState arg1)
method_10123(class_2338 arg0, class_2680 arg1)
createBlockEntity(BlockPos arg0, BlockState arg1)
public <T extends BlockEntity> BlockEntityTicker<T>
a(dip arg0, dzo arg1, dwp<T> arg2)
getTicker(Level arg0, BlockState arg1, BlockEntityType<T> arg2)
method_31645(class_1937 arg0, class_2680 arg1, class_2591<T> arg2)
getTicker(World arg0, BlockState arg1, BlockEntityType<T> arg2)
public static boolean
a(diq arg0, iu arg1)
isChestBlockedAt(LevelAccessor arg0, BlockPos arg1)
method_9756(class_1936 arg0, class_2338 arg1)
isChestBlocked(WorldAccess world, BlockPos pos)
private static boolean
a(dhv arg0, iu arg1)
isBlockedChestByBlock(BlockGetter arg0, BlockPos arg1)
method_9757(class_1922 arg0, class_2338 arg1)
hasBlockOnTop(BlockView world, BlockPos pos)
private static boolean
b(diq arg0, iu arg1)
isCatSittingOnChest(LevelAccessor arg0, BlockPos arg1)
method_9754(class_1936 arg0, class_2338 arg1)
hasCatOnTop(WorldAccess world, BlockPos pos)
protected boolean
c_(dzo arg0)
hasAnalogOutputSignal(BlockState arg0)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState arg0)
protected int
a(dzo arg0, dip arg1, iu arg2)
getAnalogOutputSignal(BlockState arg0, Level arg1, BlockPos arg2)
method_9572(class_2680 arg0, class_1937 arg1, class_2338 arg2)
getComparatorOutput(BlockState arg0, World arg1, BlockPos arg2)
protected BlockState
a(dzo arg0, dsm arg1)
rotate(BlockState arg0, Rotation arg1)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
protected BlockState
a(dzo arg0, dqv arg1)
mirror(BlockState arg0, Mirror arg1)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
protected void
a(dzp$a<dlu, dzo> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected boolean
a(dzo arg0, ewk arg1)
isPathfindable(BlockState arg0, PathComputationType arg1)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
protected void
a(dzo arg0, aro arg1, iu arg2, azt arg3)
tick(BlockState arg0, ServerLevel arg1, BlockPos arg2, RandomSource arg3)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)