package lv.enes.mc.eris_alchemy.block; import jakarta.annotation.Nonnull; import jakarta.annotation.Nullable; import lv.enes.mc.eris_alchemy.ErisAlchemyRegistry; import lv.enes.mc.eris_alchemy.block.entity.AlchemicalChestEntity; import net.minecraft.core.BlockPos; import net.minecraft.network.chat.Component; import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.state.BlockState; public class AlchemicalChestBlock extends ChestLikeBlock { public static final Component CONTAINER_TITLE = Component.translatable("container.eris_alchemy.alchemical_chest"); public AlchemicalChestBlock(Properties properties) { super(properties, () -> ErisAlchemyRegistry.BlockEntities.ALCHEMICAL_CHEST); } @Override @Nonnull protected Component getContainerTitle() { return CONTAINER_TITLE; } @Nullable @Override public BlockEntity newBlockEntity(BlockPos pos, BlockState state) { return new AlchemicalChestEntity(pos, state); } }