Added Ender Ore and Ender Dust

This commit is contained in:
Aleksey 2020-09-24 15:25:04 +03:00
parent 16c5a9131b
commit 1966d89dc7
13 changed files with 94 additions and 7 deletions

View file

@ -7,24 +7,24 @@ import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
import ru.betterend.BetterEnd;
import ru.betterend.blocks.BlockEndstoneDust;
import ru.betterend.blocks.BlockOre;
import ru.betterend.blocks.BlockWetMycelium;
import ru.betterend.tab.CreativeTab;
public class BlockRegistry {
public static final Block ENDSTONE_DUST = registerBlock("endstone_dust", new BlockEndstoneDust());
public static final Block WET_MYCELIUM = registerBlock("wet_mycelium", new BlockWetMycelium());
public static final Block ENDER_ORE = registerBlock("ender_ore", new BlockOre(ItemRegistry.ENDER_DUST, 1, 3));
public static void register() {}
private static Block registerBlock(String name, Block block)
{
private static Block registerBlock(String name, Block block) {
Registry.register(Registry.BLOCK, new Identifier(BetterEnd.MOD_ID, name), block);
ItemRegistry.registerItem(name, new BlockItem(block, new Item.Settings().group(CreativeTab.END_TAB)));
return block;
}
public static Block registerBlockNI(String name, Block block)
{
public static Block registerBlockNI(String name, Block block) {
return Registry.register(Registry.BLOCK, new Identifier(BetterEnd.MOD_ID, name), block);
}
}