Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.advancedcombat.init;
- import com.advancedcombat.AdvancedCombat;
- import com.advancedcombat.common.item.*;
- import com.advancedcombat.common.item.util.ACArmorMaterial;
- import com.advancedcombat.common.item.util.ACToolTier;
- import com.advancedcombat.common.item.ObsidianArmorItem;
- import com.advancedcombat.common.item.StoneArmorItem;
- import com.advancedcombat.common.item.WoodArmorItem;
- import com.advancedcombat.common.item.util.BlockItemUtils;
- import net.minecraft.enchantment.Enchantments;
- import net.minecraft.inventory.EquipmentSlotType;
- import net.minecraft.item.*;
- import net.minecraftforge.fml.RegistryObject;
- import net.minecraftforge.registries.DeferredRegister;
- import net.minecraftforge.registries.ForgeRegistries;
- public class ACItems {
- public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, AdvancedCombat.MOD_ID);
- /** Blocks. */
- public static RegistryObject<Item> advanced_stone;
- public static RegistryObject<Item> nether_star_block;
- public static RegistryObject<Item> reinforced_obsidian;
- public static RegistryObject<Item> advanced_wooden_sword;
- public static RegistryObject<Item> advanced_stone_sword;
- public static RegistryObject<Item> advanced_golden_sword;
- public static RegistryObject<Item> advanced_iron_sword;
- public static RegistryObject<Item> advanced_emerald_sword;
- public static RegistryObject<Item> advanced_diamond_sword;
- public static RegistryObject<Item> nether_star_sword;
- public static RegistryObject<Item> advanced_nether_star_sword;
- public static RegistryObject<Item> creative_sword;
- /** Upgrades. */
- public static RegistryObject<Item> sharpness_upgrade;
- public static RegistryObject<Item> smite_upgrade;
- public static RegistryObject<Item> bane_of_arthropods_upgrade;
- public static RegistryObject<Item> knockback_upgrade;
- public static RegistryObject<Item> fire_aspect_upgrade;
- public static RegistryObject<Item> looting_upgrade;
- public static RegistryObject<Item> unbreaking_upgrade;
- public static RegistryObject<Item> mending_upgrade;
- public static RegistryObject<Item> protection_upgrade;
- public static RegistryObject<Item> fire_protection_upgrade;
- public static RegistryObject<Item> blast_protection_upgrade;
- public static RegistryObject<Item> projectile_protection_upgrade;
- public static RegistryObject<Item> feather_falling_upgrade;
- public static RegistryObject<Item> respiration_upgrade;
- public static RegistryObject<Item> aqua_affinity_upgrade;
- public static RegistryObject<Item> thorns_upgrade;
- public static RegistryObject<Item> depth_strider_upgrade;
- public static RegistryObject<Item> frost_walker_upgrade;
- public static RegistryObject<Item> efficiency_upgrade;
- public static RegistryObject<Item> silk_touch_upgrade;
- public static RegistryObject<Item> fortune_upgrade;
- public static RegistryObject<Item> power_upgrade;
- public static RegistryObject<Item> punch_upgrade;
- public static RegistryObject<Item> flame_upgrade;
- public static RegistryObject<Item> infinity_upgrade;
- public static RegistryObject<Item> luck_of_the_sea_upgrade;
- public static RegistryObject<Item> lure_upgrade;
- public static RegistryObject<Item> advanced_bow;
- public static RegistryObject<Item> advanced_shield;
- /** Armor. */
- public static RegistryObject<Item> wooden_helmet;
- public static RegistryObject<Item> wooden_chestplate;
- public static RegistryObject<Item> wooden_leggings;
- public static RegistryObject<Item> wooden_boots;
- public static RegistryObject<Item> stone_helmet;
- public static RegistryObject<Item> stone_chestplate;
- public static RegistryObject<Item> stone_leggings;
- public static RegistryObject<Item> stone_boots;
- public static RegistryObject<Item> obsidian_helmet;
- public static RegistryObject<Item> obsidian_chestplate;
- public static RegistryObject<Item> obsidian_leggings;
- public static RegistryObject<Item> obsidian_boots;
- /** Registers items based on config values. */
- public static void registerItems(DeferredRegister<Item> items) {
- advanced_stone = items.register("advanced_stone", () -> new BlockItemUtils(ACBlocks.ADVANCED_STONE.get()));
- nether_star_block = items.register("nether_star_block", () -> new BlockItemUtils(ACBlocks.NETHER_STAR_BLOCK.get()));
- reinforced_obsidian = items.register("reinforced_obsidian", () -> new BlockItemUtils(ACBlocks.REINFORCED_OBSIDIAN.get()));
- advanced_wooden_sword = items.register("advanced_wooden_sword", () -> new AdvancedSwordItem(ACToolTier.ADVANCED_WOOD, 3, -2.4F, false));
- advanced_stone_sword = items.register("advanced_stone_sword", () -> new AdvancedSwordItem(ACToolTier.ADVANCED_STONE, 3, -2.4F, false));
- advanced_golden_sword = items.register("advanced_golden_sword", () -> new AdvancedSwordItem(ACToolTier.ADVANCED_GOLD, 3, -2.4F, false));
- advanced_iron_sword = items.register("advanced_iron_sword", () -> new AdvancedSwordItem(ACToolTier.ADVANCED_IRON, 3, -2.4F, false));
- advanced_emerald_sword = items.register("advanced_emerald_sword", () -> new AdvancedSwordItem(ACToolTier.ADVANCED_EMERALD, 3, -2.4F, false));
- advanced_diamond_sword = items.register("advanced_diamond_sword", () -> new AdvancedSwordItem(ACToolTier.ADVANCED_DIAMOND, 3, -2.4F, false));
- nether_star_sword = items.register("nether_star_sword", () -> new AdvancedSwordItem(ACToolTier.NETHER_STAR, 3, -2.4F, true));
- advanced_nether_star_sword = items.register("advanced_nether_star_sword", () -> new AdvancedSwordItem(ACToolTier.ADVANCED_NETHER_STAR, 3, -2.4F, true));
- creative_sword = items.register("creative_sword", () -> new CreativeSwordItem(ACToolTier.CREATIVE));
- sharpness_upgrade = items.register("sharpness_upgrade", () -> new EnchantmentItem(Enchantments.SHARPNESS));
- smite_upgrade = items.register("smite_upgrade", () -> new EnchantmentItem(Enchantments.SMITE));
- bane_of_arthropods_upgrade = items.register("bane_of_arthropods_upgrade", () -> new EnchantmentItem(Enchantments.BANE_OF_ARTHROPODS));
- knockback_upgrade = items.register("knockback_upgrade", () -> new EnchantmentItem(Enchantments.KNOCKBACK));
- fire_aspect_upgrade = items.register("fire_aspect_upgrade", () -> new EnchantmentItem(Enchantments.FIRE_ASPECT));
- looting_upgrade = items.register("looting_upgrade", () -> new EnchantmentItem(Enchantments.MOB_LOOTING));
- unbreaking_upgrade = items.register("unbreaking_upgrade", () -> new EnchantmentItem(Enchantments.UNBREAKING));
- mending_upgrade = items.register("mending_upgrade", () -> new EnchantmentItem(Enchantments.MENDING));
- protection_upgrade = items.register("protection_upgrade", () -> new EnchantmentItem(Enchantments.ALL_DAMAGE_PROTECTION));
- fire_protection_upgrade = items.register("fire_protection_upgrade", () -> new EnchantmentItem(Enchantments.FIRE_PROTECTION));
- blast_protection_upgrade = items.register("blast_protection_upgrade", () -> new EnchantmentItem(Enchantments.BLAST_PROTECTION));
- projectile_protection_upgrade = items.register("projectile_protection_upgrade", () -> new EnchantmentItem(Enchantments.PROJECTILE_PROTECTION));
- feather_falling_upgrade = items.register("feather_falling_upgrade", () -> new EnchantmentItem(Enchantments.FALL_PROTECTION));
- respiration_upgrade = items.register("respiration_upgrade", () -> new EnchantmentItem(Enchantments.RESPIRATION));
- aqua_affinity_upgrade = items.register("aqua_affinity_upgrade", () -> new EnchantmentItem(Enchantments.AQUA_AFFINITY));
- thorns_upgrade = items.register("thorns_upgrade", () -> new EnchantmentItem(Enchantments.THORNS));
- depth_strider_upgrade = items.register("depth_strider_upgrade", () -> new EnchantmentItem(Enchantments.DEPTH_STRIDER));
- frost_walker_upgrade = items.register("frost_walker_upgrade", () -> new EnchantmentItem(Enchantments.FROST_WALKER));
- efficiency_upgrade = items.register("efficiency_upgrade", () -> new EnchantmentItem(Enchantments.BLOCK_EFFICIENCY));
- silk_touch_upgrade = items.register("silk_touch_upgrade", () -> new EnchantmentItem(Enchantments.SILK_TOUCH));
- fortune_upgrade = items.register("fortune_upgrade", () -> new EnchantmentItem(Enchantments.BLOCK_FORTUNE));
- power_upgrade = items.register("power_upgrade", () -> new EnchantmentItem(Enchantments.POWER_ARROWS));
- punch_upgrade = items.register("punch_upgrade", () -> new EnchantmentItem(Enchantments.PUNCH_ARROWS));
- flame_upgrade = items.register("flame_upgrade", () -> new EnchantmentItem(Enchantments.FLAMING_ARROWS));
- infinity_upgrade = items.register("infinity_upgrade", () -> new EnchantmentItem(Enchantments.INFINITY_ARROWS));
- luck_of_the_sea_upgrade = items.register("luck_of_the_sea_upgrade", () -> new EnchantmentItem(Enchantments.FISHING_LUCK));
- lure_upgrade = items.register("lure_upgrade", () -> new EnchantmentItem(Enchantments.FISHING_SPEED));
- advanced_bow = items.register("advanced_bow", AdvancedBowItem::new);
- advanced_shield = items.register("advanced_shield", AdvancedShieldItem::new);
- wooden_helmet = items.register("wooden_helmet", () -> new WoodArmorItem(ACArmorMaterial.WOODEN, EquipmentSlotType.HEAD));
- wooden_chestplate = items.register("wooden_chestplate", () -> new WoodArmorItem(ACArmorMaterial.WOODEN, EquipmentSlotType.CHEST));
- wooden_leggings = items.register("wooden_leggings", () -> new WoodArmorItem(ACArmorMaterial.WOODEN, EquipmentSlotType.LEGS));
- wooden_boots = items.register("wooden_boots", () -> new WoodArmorItem(ACArmorMaterial.WOODEN, EquipmentSlotType.FEET));
- stone_helmet = items.register("stone_helmet", () -> new StoneArmorItem(ACArmorMaterial.STONE, EquipmentSlotType.HEAD));
- stone_chestplate = items.register("stone_chestplate", () -> new StoneArmorItem(ACArmorMaterial.STONE, EquipmentSlotType.CHEST));
- stone_leggings = items.register("stone_leggings", () -> new StoneArmorItem(ACArmorMaterial.STONE, EquipmentSlotType.LEGS));
- stone_boots = items.register("stone_boots", () -> new StoneArmorItem(ACArmorMaterial.STONE, EquipmentSlotType.FEET));
- obsidian_helmet = items.register("obsidian_helmet", () -> new ObsidianArmorItem(ACArmorMaterial.OBSIDIAN, EquipmentSlotType.HEAD));
- obsidian_chestplate = items.register("obsidian_chestplate", () -> new ObsidianArmorItem(ACArmorMaterial.OBSIDIAN, EquipmentSlotType.CHEST));
- obsidian_leggings = items.register("obsidian_leggings", () -> new ObsidianArmorItem(ACArmorMaterial.OBSIDIAN, EquipmentSlotType.LEGS));
- obsidian_boots = items.register("obsidian_boots", () -> new ObsidianArmorItem(ACArmorMaterial.OBSIDIAN, EquipmentSlotType.FEET));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement