|
2 | 2 |
|
3 | 3 | import static net.hex_chalkcircles.Hex_chalkcircles.id;
|
4 | 4 |
|
5 |
| -import dev.architectury.registry.CreativeTabRegistry; |
6 | 5 | import dev.architectury.registry.registries.DeferredRegister;
|
7 | 6 | import dev.architectury.registry.registries.RegistrySupplier;
|
8 | 7 | import net.hex_chalkcircles.Hex_chalkcircles;
|
9 | 8 | import net.hex_chalkcircles.blocks.BlockDustRune;
|
10 |
| -import net.hex_chalkcircles.item.*; |
11 | 9 | import net.minecraft.core.Registry;
|
12 |
| -import net.minecraft.world.item.CreativeModeTab; |
13 |
| -import net.minecraft.world.item.Item; |
14 |
| -import net.minecraft.world.item.ItemStack; |
15 | 10 | import net.minecraft.world.level.block.Block;
|
16 |
| -import net.minecraft.world.level.block.entity.BlockEntity; |
17 |
| -import net.minecraft.world.level.block.entity.BlockEntityType; |
| 11 | +import net.minecraft.world.level.block.state.BlockBehaviour; |
| 12 | +import net.minecraft.world.level.material.Material; |
18 | 13 |
|
19 | 14 |
|
20 | 15 | public class Hex_chalkcirclesBlockRegistry {
|
21 | 16 | // Register items through this
|
22 | 17 | public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(Hex_chalkcircles.MOD_ID, Registry.BLOCK_REGISTRY);
|
23 |
| - public static final DeferredRegister<BlockEntityType<?>> BLOCKENTITIES = DeferredRegister.create(Hex_chalkcircles.MOD_ID, Registry.BLOCK_ENTITY_TYPE_REGISTRY); |
| 18 | + //public static final DeferredRegister<BlockEntityType<?>> BLOCKENTITIES = DeferredRegister.create(Hex_chalkcircles.MOD_ID, Registry.BLOCK_ENTITY_TYPE_REGISTRY); |
24 | 19 |
|
25 |
| - private static final Item.Properties CHALKCIRCLES_64STACK = new Item.Properties().stacksTo(64); |
26 |
| - private static final Item.Properties CHALKCIRCLES_16STACK = new Item.Properties().stacksTo(16); |
27 |
| - private static final Item.Properties CHALKCIRCLES_UNSTACKABLE = new Item.Properties().stacksTo(1); |
28 | 20 |
|
29 | 21 |
|
30 | 22 | public static void init() {
|
31 | 23 | BLOCKS.register();
|
32 |
| - BLOCKENTITIES.register(); |
| 24 | + //BLOCKENTITIES.register(); |
33 | 25 | }
|
34 | 26 |
|
35 | 27 | // A new creative tab. Notice how it is one of the few things that are not deferred
|
36 | 28 |
|
37 | 29 | // During the loading phase, refrain from accessing suppliers' items (e.g. EXAMPLE_ITEM.get()), they will not be available
|
38 |
| - public static final RegistrySupplier<BlockDustRune> CHALK_RUNE = BLOCKS.register("chalk_square_block", () -> new BlockDustRune(); |
| 30 | + public static final RegistrySupplier<Block> CHALK_RUNE = BLOCKS.register("chalk_square_block", () -> new BlockDustRune(null)); |
39 | 31 | }
|
0 commit comments