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.class_11582
net.minecraft.block.CopperChestBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<CopperChestBlock>
CODEC
field_61405
CODEC
private static final Supplier<Map<Block, Block>>
COPPER_TO_COPPER_CHEST_MAPPING
field_61406
FROM_COPPER_BLOCK
private final Oxidizable$OxidationLevel
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()
method_53969()
getCodec()
public static SoundEvent
getHingeSound(WeatheringCopper$WeatherState state, boolean open)
method_1_4423(class_5955$class_5811 arg0, boolean arg1)
getSoundEvent(Oxidizable$OxidationLevel oxidationLevel, boolean open)
public boolean
chestCanConnectTo(BlockState blockState)
method_72582(class_2680 arg0)
canMergeWith(BlockState arg0)
public BlockState
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
private static BlockState
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)
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)
method_72598(class_11582 arg0, class_2680 arg1)
getUnwaxed(CopperChestBlock block, BlockState state)
public Oxidizable$OxidationLevel
getState()
method_72601()
getOxidationLevel()
public static BlockState
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()
method_72602()
isWaxed()
public boolean
shouldChangedStateKeepBlockEntity(BlockState oldState)
method_72600(class_2680 arg0)
keepBlockEntityWhenReplacedWith(BlockState arg0)
private static BlockState
lambda$unwaxBlock$0(BlockState arg0, Block arg1)
method_72599(class_2680 arg0, class_2248 arg1)
method_72599(BlockState arg0, Block waxedState)
private static BlockEntityType
lambda$new$0()
method_72603()
method_72603()
private static Map
lambda$static$1()
method_1_4973()
method_1_4973()
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_72596(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_72596(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)