net.minecraft.block

public class CopperChestBlock

extends ChestBlock

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, BlockEntityProvider, Waterloggable, FluidDrainable, FluidFillable

net.minecraft.world.level.block.CopperChestBlock
net.minecraft.world.level.block.CopperChestBlock
net.minecraft.class_11582
net.minecraft.block.CopperChestBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<CopperChestBlock>
CODEC
CODEC
field_61405
CODEC
private static final Map<Block, Supplier<Block>>
COPPER_TO_COPPER_CHEST_MAPPING
COPPER_TO_COPPER_CHEST_MAPPING
field_61406
FROM_COPPER_BLOCK
private final Oxidizable$OxidationLevel
weatherState
weatherState
field_61407
oxidationLevel

Constructor summary

ModifierConstructor
public (Oxidizable$OxidationLevel oxidationLevel, SoundEvent openSound, SoundEvent closeSound, AbstractBlock$Settings settings)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<? extends CopperChestBlock>
codec()
codec()
method_53969()
getCodec()
public boolean
chestCanConnectTo(BlockState blockState)
chestCanConnectTo(BlockState blockState)
method_72582(class_2680 arg0)
canMergeWith(BlockState arg0)
public BlockState
getStateForPlacement(BlockPlaceContext context)
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
private static BlockState
getLeastOxidizedChestOfConnectedBlocks(BlockState state, Level level, BlockPos pos)
getLeastOxidizedChestOfConnectedBlocks(BlockState state, Level level, BlockPos pos)
method_74028(class_2680 arg0, class_1937 arg1, class_2338 arg2)
getNewState(BlockState state, World world, BlockPos pos)
protected BlockState
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
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)
private static Optional<BlockState>
unwaxBlock(CopperChestBlock copperChestBlock, BlockState state)
unwaxBlock(CopperChestBlock copperChestBlock, BlockState state)
method_72598(class_11582 arg0, class_2680 arg1)
getUnwaxed(CopperChestBlock block, BlockState state)
public Oxidizable$OxidationLevel
getState()
getState()
method_72601()
getOxidationLevel()
public static BlockState
getFromCopperBlock(Block copperBlock, Direction facing, Level level, BlockPos pos)
getFromCopperBlock(Block copperBlock, Direction facing, Level level, BlockPos pos)
method_72597(class_2248 arg0, class_2350 arg1, class_1937 arg2, class_2338 arg3)
fromCopperBlock(Block block, Direction facing, World world, BlockPos pos)
public boolean
isWaxed()
isWaxed()
method_72602()
isWaxed()
public boolean
shouldChangedStateKeepBlockEntity(BlockState oldState)
shouldChangedStateKeepBlockEntity(BlockState oldState)
method_72600(class_2680 arg0)
keepBlockEntityWhenReplacedWith(BlockState arg0)