blob: eb7cb6e4df9d549962a37845e0e4b0b3a61e3354 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
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<AlchemicalChestEntity> {
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);
}
}
|