net.minecraft.world.level.block

public class ChestBlock

extends AbstractChestBlock<ChestBlockEntity> implements SimpleWaterloggedBlock

All mapped superinterfaces:

FeatureElement, ItemLike, EntityBlock, SimpleWaterloggedBlock, BucketPickup, LiquidBlockContainer

cxt
net.minecraft.world.level.block.ChestBlock
net.minecraft.class_2281
net.minecraft.unmapped.C_kscsbeif
net.minecraft.block.ChestBlock
net.minecraft.block.ChestBlock
net.minecraft.src.C_1728_
net.minecraft.world.level.block.BlockChest

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<ChestBlock>
b
CODEC
field_46311
f_bfpteavl
CODEC
f_302220_
public static final DirectionProperty
c
FACING
field_10768
f_hawtdftr
FACING
FACING
f_51478_
public static final EnumProperty<ChestType>
d
TYPE
field_10770
f_ehunughp
CHEST_TYPE
CHEST_TYPE
f_51479_
public static final BooleanProperty
e
WATERLOGGED
field_10772
f_zqowflyx
WATERLOGGED
WATERLOGGED
f_51480_
public static final int
f
EVENT_SET_OPEN_COUNT
field_31057
f_ytdpygkd
field_31057
EVENT_SET_OPEN_COUNT
f_153051_
protected static final int
g
AABB_OFFSET
field_31058
f_qrinftkq
field_31058
SHAPE_OFFSET
f_153052_
protected static final int
h
AABB_HEIGHT
field_31059
f_ijcrhgmu
field_31059
SHAPE_HEIGHT
f_153053_
protected static final VoxelShape
i
NORTH_AABB
field_10767
f_huzcmium
DOUBLE_NORTH_SHAPE
DOUBLE_NORTH_SHAPE
f_51481_
protected static final VoxelShape
j
SOUTH_AABB
field_10771
f_hmvpqaks
DOUBLE_SOUTH_SHAPE
DOUBLE_SOUTH_SHAPE
f_51482_
protected static final VoxelShape
k
WEST_AABB
field_10773
f_mquetmvs
DOUBLE_WEST_SHAPE
DOUBLE_WEST_SHAPE
f_51483_
protected static final VoxelShape
l
EAST_AABB
field_10769
f_nmthdxli
DOUBLE_EAST_SHAPE
DOUBLE_EAST_SHAPE
f_51484_
protected static final VoxelShape
m
AABB
field_10774
f_qicrnanz
SINGLE_SHAPE
SINGLE_SHAPE
f_51485_
private static final DoubleBlockCombiner$Combiner<ChestBlockEntity, Optional<Container>>
n
CHEST_COMBINER
field_17356
f_xwudvaxp
INVENTORY_RETRIEVER
INVENTORY_RETRIEVER
f_51486_
private static final DoubleBlockCombiner$Combiner<ChestBlockEntity, Optional<MenuProvider>>
o
MENU_PROVIDER_COMBINER
field_17357
f_xlpqsxfi
NAME_RETRIEVER
NAME_RETRIEVER
f_51487_

Constructor summary

ModifierConstructor
protected (BlockBehaviour$Properties p_51491_, Supplier<BlockEntityType<? extends ChestBlockEntity>> arg1)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<? extends ChestBlock>
a()
codec()
method_53969()
m_wrnxumjr()
getCodec()
m_304657_()
public static DoubleBlockCombiner$BlockType
g(djh arg0)
getBlockType(BlockState arg0)
method_24169(class_2680 arg0)
m_oqskqqvq(C_txtbiemp arg0)
getDoubleBlockType(BlockState state)
getDoubleBlockType(BlockState state)
m_51582_(C_2064_ p_51583_)
public RenderShape
b_(djh arg0)
getRenderShape(BlockState arg0)
method_9604(class_2680 arg0)
m_mjglzdvu(C_txtbiemp arg0)
getRenderType(BlockState arg0)
getRenderType(BlockState arg0)
m_7514_(C_2064_ arg0)
public BlockState
a(djh arg0, ic arg1, djh arg2, ctq arg3, hx arg4, hx arg5)
updateShape(BlockState arg0, Direction arg1, BlockState arg2, LevelAccessor arg3, BlockPos arg4, BlockPos arg5)
method_9559(class_2680 arg0, class_2350 arg1, class_2680 arg2, class_1936 arg3, class_2338 arg4, class_2338 arg5)
m_yvunqpeq(C_txtbiemp arg0, C_xpuuihxf arg1, C_txtbiemp arg2, C_vdvbsyle arg3, C_hynzadkk arg4, C_hynzadkk arg5)
getStateForNeighborUpdate(BlockState arg0, Direction arg1, BlockState arg2, WorldAccess arg3, BlockPos arg4, BlockPos arg5)
getStateForNeighborUpdate(BlockState arg0, Direction arg1, BlockState arg2, WorldAccess arg3, BlockPos arg4, BlockPos arg5)
m_7417_(C_2064_ p_51556_, C_4687_ p_51557_, C_2064_ p_51558_, C_1598_ p_51559_, C_4675_ p_51560_, C_4675_ arg5)
public VoxelShape
a(djh arg0, csv arg1, hx arg2, ely arg3)
getShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
m_fqngyjtr(C_txtbiemp arg0, C_peaveboq arg1, C_hynzadkk arg2, C_pbfjvesm arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
m_5940_(C_2064_ p_51570_, C_1559_ p_51571_, C_4675_ p_51572_, C_3051_ arg3)
public static Direction
h(djh arg0)
getConnectedDirection(BlockState arg0)
method_9758(class_2680 arg0)
m_qeddzcng(C_txtbiemp arg0)
getFacing(BlockState state)
getFacing(BlockState state)
m_51584_(C_2064_ p_51585_)
public BlockState
a(cph arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
m_iwedynhy(C_aiootljq arg0)
getPlacementState(ItemPlacementContext arg0)
getPlacementState(ItemPlacementContext arg0)
m_5573_(C_1445_ arg0)
public FluidState
c_(djh arg0)
getFluidState(BlockState arg0)
method_9545(class_2680 arg0)
m_nlstkjhl(C_txtbiemp arg0)
getFluidState(BlockState arg0)
getFluidState(BlockState arg0)
m_5888_(C_2064_ arg0)
private Direction
a(cph arg0, ic arg1)
candidatePartnerFacing(BlockPlaceContext arg0, Direction arg1)
method_9753(class_1750 arg0, class_2350 arg1)
m_accidufl(C_aiootljq arg0, C_xpuuihxf arg1)
getNeighborChestDirection(ItemPlacementContext ctx, Direction dir)
getNeighborChestDirection(ItemPlacementContext ctx, Direction dir)
m_51494_(C_1445_ p_51496_, C_4687_ arg1)
public void
a(ctp arg0, hx arg1, djh arg2, bml arg3, cmy arg4)
setPlacedBy(Level arg0, BlockPos arg1, BlockState arg2, LivingEntity arg3, ItemStack arg4)
method_9567(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1309 arg3, class_1799 arg4)
m_fuvqealb(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2, C_usxaxydn arg3, C_sddaxwyk arg4)
onPlaced(World arg0, BlockPos arg1, BlockState arg2, LivingEntity arg3, ItemStack arg4)
onPlaced(World arg0, BlockPos arg1, BlockState arg2, LivingEntity arg3, ItemStack arg4)
m_6402_(C_1596_ p_51504_, C_4675_ p_51505_, C_2064_ p_51506_, C_524_ p_51507_, C_1391_ arg4)
public void
a(djh arg0, ctp arg1, hx arg2, djh arg3, boolean arg4)
onRemove(BlockState arg0, Level arg1, BlockPos arg2, BlockState arg3, boolean arg4)
method_9536(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
m_rhbsxbgh(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, C_txtbiemp arg3, boolean arg4)
onStateReplaced(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
onStateReplaced(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
m_6810_(C_2064_ p_51539_, C_1596_ p_51540_, C_4675_ p_51541_, C_2064_ p_51542_, boolean arg4)
public InteractionResult
a(djh arg0, ctp arg1, hx arg2, cfi arg3, bka arg4, elp arg5)
use(BlockState arg0, Level arg1, BlockPos arg2, Player arg3, InteractionHand arg4, BlockHitResult arg5)
method_9534(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3, class_1268 arg4, class_3965 arg5)
m_rocdemyx(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, C_jzrpycqo arg3, C_laxmzoqs arg4, C_jdakttms arg5)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, Hand arg4, BlockHitResult arg5)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, Hand arg4, BlockHitResult arg5)
m_6227_(C_2064_ p_51532_, C_1596_ p_51533_, C_4675_ p_51534_, C_1141_ p_51535_, C_470_ p_51536_, C_3041_ arg5)
protected Stat<ResourceLocation>
c()
getOpenChestStat()
method_9755()
m_uzotysrx()
getOpenStat()
getOpenStat()
m_7699_()
public BlockEntityType<? extends ChestBlockEntity>
d()
blockEntityType()
method_31641()
m_raiqqmzl()
getExpectedEntityType()
getExpectedEntityType()
m_153066_()
public static Container
a(cxt arg0, djh arg1, ctp arg2, hx 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)
m_mwcfcauf(C_kscsbeif arg0, C_txtbiemp arg1, C_cdctfzbn arg2, C_hynzadkk arg3, boolean arg4)
getInventory(ChestBlock block, BlockState state, World world, BlockPos pos, boolean ignoreBlocked)
getInventory(ChestBlock block, BlockState state, World world, BlockPos pos, boolean ignoreBlocked)
m_51511_(C_1728_ p_51512_, C_2064_ p_51513_, C_1596_ p_51514_, C_4675_ p_51515_, boolean p_51516_)
public DoubleBlockCombiner$NeighborCombineResult<? extends ChestBlockEntity>
a(djh arg0, ctp arg1, hx 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)
m_uywfrlmd(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, boolean arg3)
getBlockEntitySource(BlockState arg0, World arg1, BlockPos arg2, boolean arg3)
getBlockEntitySource(BlockState arg0, World arg1, BlockPos arg2, boolean arg3)
m_5641_(C_2064_ p_51545_, C_1596_ p_51546_, C_4675_ p_51547_, boolean arg3)
public MenuProvider
b(djh arg0, ctp arg1, hx arg2)
getMenuProvider(BlockState arg0, Level arg1, BlockPos arg2)
method_17454(class_2680 arg0, class_1937 arg1, class_2338 arg2)
m_gzvkqagj(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2)
createScreenHandlerFactory(BlockState arg0, World arg1, BlockPos arg2)
createScreenHandlerFactory(BlockState arg0, World arg1, BlockPos arg2)
m_7246_(C_2064_ p_51575_, C_1596_ p_51576_, C_4675_ arg2)
public static DoubleBlockCombiner$Combiner<ChestBlockEntity, it.unimi.dsi.fastutil.floats.Float2FloatFunction>
a(dhy arg0)
opennessCombiner(LidBlockEntity arg0)
method_24166(class_2618 arg0)
m_tcisripg(C_tjabimsu arg0)
getAnimationProgressRetriever(LidOpenable progress)
getAnimationProgressRetriever(ChestAnimationProgress progress)
m_51517_(C_2019_ p_51518_)
public BlockEntity
a(hx arg0, djh arg1)
newBlockEntity(BlockPos arg0, BlockState arg1)
method_10123(class_2338 arg0, class_2680 arg1)
m_zupvpdxk(C_hynzadkk arg0, C_txtbiemp arg1)
createBlockEntity(BlockPos arg0, BlockState arg1)
createBlockEntity(BlockPos arg0, BlockState arg1)
m_142194_(C_4675_ p_153065_, C_2064_ arg1)
public <T extends BlockEntity> BlockEntityTicker<T>
a(ctp arg0, djh arg1, dgx<T> arg2)
getTicker(Level arg0, BlockState arg1, BlockEntityType<T> arg2)
method_31645(class_1937 arg0, class_2680 arg1, class_2591<T> arg2)
m_ujgennlh(C_cdctfzbn arg0, C_txtbiemp arg1, C_wgqvodus<T> arg2)
getTicker(World arg0, BlockState arg1, BlockEntityType<T> arg2)
getTicker(World arg0, BlockState arg1, BlockEntityType<T> arg2)
m_142354_(C_1596_ p_153056_, C_2064_ p_153057_, C_1992_<T> arg2)
public static boolean
a(ctq arg0, hx arg1)
isChestBlockedAt(LevelAccessor arg0, BlockPos arg1)
method_9756(class_1936 arg0, class_2338 arg1)
m_pjxjjpul(C_vdvbsyle arg0, C_hynzadkk arg1)
isChestBlocked(WorldAccess world, BlockPos pos)
isChestBlocked(WorldAccess world, BlockPos pos)
m_51508_(C_1598_ p_51509_, C_4675_ p_51510_)
private static boolean
a(csv arg0, hx arg1)
isBlockedChestByBlock(BlockGetter arg0, BlockPos arg1)
method_9757(class_1922 arg0, class_2338 arg1)
m_zcrwwdxl(C_peaveboq arg0, C_hynzadkk arg1)
hasBlockOnTop(BlockView world, BlockPos pos)
hasBlockOnTop(BlockView world, BlockPos pos)
m_51499_(C_1559_ p_51500_, C_4675_ p_51501_)
private static boolean
b(ctq arg0, hx arg1)
isCatSittingOnChest(LevelAccessor arg0, BlockPos arg1)
method_9754(class_1936 arg0, class_2338 arg1)
m_rgesdltc(C_vdvbsyle arg0, C_hynzadkk arg1)
hasCatOnTop(WorldAccess world, BlockPos pos)
hasOcelotOnTop(WorldAccess world, BlockPos pos)
m_51563_(C_1598_ p_51564_, C_4675_ p_51565_)
public boolean
d_(djh arg0)
hasAnalogOutputSignal(BlockState arg0)
method_9498(class_2680 arg0)
m_upxjoscw(C_txtbiemp arg0)
hasComparatorOutput(BlockState arg0)
hasComparatorOutput(BlockState arg0)
m_7278_(C_2064_ arg0)
public int
a(djh arg0, ctp arg1, hx arg2)
getAnalogOutputSignal(BlockState arg0, Level arg1, BlockPos arg2)
method_9572(class_2680 arg0, class_1937 arg1, class_2338 arg2)
m_wtutwlcg(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2)
getComparatorOutput(BlockState arg0, World arg1, BlockPos arg2)
getComparatorOutput(BlockState arg0, World arg1, BlockPos arg2)
m_6782_(C_2064_ p_51528_, C_1596_ p_51529_, C_4675_ arg2)
public BlockState
a(djh arg0, ddc arg1)
rotate(BlockState arg0, Rotation arg1)
method_9598(class_2680 arg0, class_2470 arg1)
m_umbsjste(C_txtbiemp arg0, C_mboglirk arg1)
rotate(BlockState arg0, BlockRotation arg1)
rotate(BlockState arg0, BlockRotation arg1)
m_6843_(C_2064_ p_51553_, C_1886_ arg1)
public BlockState
a(djh arg0, dbm arg1)
mirror(BlockState arg0, Mirror arg1)
method_9569(class_2680 arg0, class_2415 arg1)
m_ssvaouey(C_txtbiemp arg0, C_qomzaqud arg1)
mirror(BlockState arg0, BlockMirror arg1)
mirror(BlockState arg0, BlockMirror arg1)
m_6943_(C_2064_ p_51550_, C_1838_ arg1)
protected void
a(dji$a<cwq, djh> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
m_yujtcnah(C_ezfeikaq$C_mfnsmxhw<C_mmxmpdoq, C_txtbiemp> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
m_7926_(C_2065_$C_2066_<C_1706_, C_2064_> arg0)
public boolean
a(djh arg0, csv arg1, hx arg2, efh arg3)
isPathfindable(BlockState arg0, BlockGetter arg1, BlockPos arg2, PathComputationType arg3)
method_9516(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_10 arg3)
m_rwctfady(C_txtbiemp arg0, C_peaveboq arg1, C_hynzadkk arg2, C_kjwlgpfr arg3)
canPathfindThrough(BlockState arg0, BlockView arg1, BlockPos arg2, NavigationType arg3)
canPathfindThrough(BlockState arg0, BlockView arg1, BlockPos arg2, NavigationType arg3)
m_7357_(C_2064_ p_51523_, C_1559_ p_51524_, C_4675_ p_51525_, C_2754_ arg3)
public void
a(djh arg0, and arg1, hx arg2, auv arg3)
tick(BlockState arg0, ServerLevel arg1, BlockPos arg2, RandomSource arg3)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
m_bneobcwj(C_txtbiemp arg0, C_bdwnwhiu arg1, C_hynzadkk arg2, C_rlomrsco arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, RandomGenerator arg3)
m_213897_(C_2064_ p_220959_, C_12_ p_220960_, C_4675_ p_220961_, C_212974_ arg3)