Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.gamespriter.runictechnology.util;
- import com.gamespriter.runictechnology.RunicTechnology;
- import com.gamespriter.runictechnology.armor.ModArmorMaterials;
- import com.gamespriter.runictechnology.blocks.BlockItemBase;
- import com.gamespriter.runictechnology.blocks.TammethystBlock;
- import com.gamespriter.runictechnology.blocks.TammethystOre;
- import com.gamespriter.runictechnology.items.ItemBase;
- import com.gamespriter.runictechnology.tools.RunicTechItemTier;
- import net.minecraft.block.Block;
- import net.minecraft.block.OreBlock;
- import net.minecraft.inventory.EquipmentSlotType;
- import net.minecraft.item.*;
- import net.minecraftforge.fml.RegistryObject;
- import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
- import net.minecraftforge.registries.DeferredRegister;
- import net.minecraftforge.registries.ForgeRegistries;
- public class RegistryHandler {
- public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, RunicTechnology.MOD_ID);
- public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, RunicTechnology.MOD_ID);
- public static void init() {
- ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus());
- BLOCKS.register(FMLJavaModLoadingContext.get().getModEventBus());
- }
- //region Items
- public static final RegistryObject<Item> TAMMETHYST = ITEMS.register("tammethyst", ItemBase::new);
- //endregion
- //region Tools
- //region Tammethyst Tools
- public static final RegistryObject<SwordItem> TAMMETHYST_SWORD = ITEMS.register("tammethyst_sword", () ->
- new SwordItem(RunicTechItemTier.TAMMETHYST, 3, -2.4f, new Item.Properties().group(RunicTechnology.TAB))
- );
- public static final RegistryObject<PickaxeItem> TAMMETHYST_PICKAXE = ITEMS.register("tammethyst_pickaxe", () ->
- new PickaxeItem(RunicTechItemTier.TAMMETHYST, 1, -2.8f, new Item.Properties().group(RunicTechnology.TAB))
- );
- public static final RegistryObject<AxeItem> TAMMETHYST_AXE = ITEMS.register("tammethyst_axe", () ->
- new AxeItem(RunicTechItemTier.TAMMETHYST, 6, -3.1f, new Item.Properties().group(RunicTechnology.TAB))
- );
- public static final RegistryObject<ShovelItem> TAMMETHYST_SHOVEL = ITEMS.register("tammethyst_shovel", () ->
- new ShovelItem(RunicTechItemTier.TAMMETHYST, 1.0f, -3.0f, new Item.Properties().group(RunicTechnology.TAB))
- );
- public static final RegistryObject<HoeItem> TAMMETHYST_HOE = ITEMS.register("tammethyst_hoe", () ->
- new HoeItem(RunicTechItemTier.TAMMETHYST, -3, -0.0f, new Item.Properties().group(RunicTechnology.TAB))
- );
- //endregion
- //region Tier 2 Tools
- //TODO: Make tier 2 tools
- //endregion
- //region Tier 3 Tools
- //TODO: Make tier 3 tools
- //endregion
- //endregion
- //region Armor
- //region Tammethyst Armor
- public static final RegistryObject<ArmorItem> TAMMETHYST_HELMET = ITEMS.register("tammethyst_helmet", () ->
- new ArmorItem(ModArmorMaterials.TAMMETHYST, EquipmentSlotType.HEAD, new Item.Properties().group(RunicTechnology.TAB))
- );
- public static final RegistryObject<ArmorItem> TAMMETHYST_CHESTPLATE = ITEMS.register("tammethyst_chestplate", () ->
- new ArmorItem(ModArmorMaterials.TAMMETHYST, EquipmentSlotType.CHEST, new Item.Properties().group(RunicTechnology.TAB))
- );
- public static final RegistryObject<ArmorItem> TAMMETHYST_LEGS = ITEMS.register("tammethyst_leggings", () ->
- new ArmorItem(ModArmorMaterials.TAMMETHYST, EquipmentSlotType.LEGS, new Item.Properties().group(RunicTechnology.TAB))
- );
- public static final RegistryObject<ArmorItem> TAMMETHYST_BOOTS = ITEMS.register("tammethyst_boots", () ->
- new ArmorItem(ModArmorMaterials.TAMMETHYST, EquipmentSlotType.FEET, new Item.Properties().group(RunicTechnology.TAB))
- );
- //endregion
- //endregion
- //region Blocks
- public static final RegistryObject<Block> TAMMETHYST_BLOCK = BLOCKS.register("tammethyst_block", TammethystBlock::new);
- public static final RegistryObject<Block> TAMMETHYST_ORE = BLOCKS.register("tammethyst_ore", TammethystOre::new);
- //endregion
- //region Block Items
- public static final RegistryObject<Item> TAMMETHYST_BLOCK_ITEM = ITEMS.register("tammethyst_block", () -> new BlockItemBase(TAMMETHYST_BLOCK.get()));
- public static final RegistryObject<Item> TAMMETHYST_ORE_ITEM = ITEMS.register("tammethyst_ore", () -> new BlockItemBase(TAMMETHYST_ORE.get()));
- //endregion
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement