2015-11-02 20:39:44 +00:00
|
|
|
package WayofTime.bloodmagic.registry;
|
|
|
|
|
2015-11-08 22:42:02 +00:00
|
|
|
import net.minecraft.item.Item;
|
|
|
|
import net.minecraftforge.fml.common.registry.GameRegistry;
|
2015-11-02 20:39:44 +00:00
|
|
|
import WayofTime.bloodmagic.BloodMagic;
|
|
|
|
import WayofTime.bloodmagic.ConfigHandler;
|
|
|
|
import WayofTime.bloodmagic.api.BloodMagicAPI;
|
|
|
|
import WayofTime.bloodmagic.api.orb.BloodOrb;
|
|
|
|
import WayofTime.bloodmagic.api.registry.OrbRegistry;
|
|
|
|
import WayofTime.bloodmagic.item.ItemActivationCrystal;
|
|
|
|
import WayofTime.bloodmagic.item.ItemBloodOrb;
|
|
|
|
import WayofTime.bloodmagic.item.ItemBucketEssence;
|
2015-11-07 16:51:41 +00:00
|
|
|
import WayofTime.bloodmagic.item.ItemSacrificialDagger;
|
2015-11-08 22:42:02 +00:00
|
|
|
import WayofTime.bloodmagic.item.armour.ItemLivingArmour;
|
|
|
|
import WayofTime.bloodmagic.item.sigil.ItemSigilAir;
|
|
|
|
import WayofTime.bloodmagic.item.sigil.ItemSigilDivination;
|
|
|
|
import WayofTime.bloodmagic.item.sigil.ItemSigilLava;
|
|
|
|
import WayofTime.bloodmagic.item.sigil.ItemSigilVoid;
|
|
|
|
import WayofTime.bloodmagic.item.sigil.ItemSigilWater;
|
2015-11-02 20:39:44 +00:00
|
|
|
import WayofTime.bloodmagic.util.helper.InventoryRenderHelper;
|
2015-10-30 03:22:14 +00:00
|
|
|
|
|
|
|
public class ModItems {
|
|
|
|
|
|
|
|
public static Item bloodOrb;
|
|
|
|
public static BloodOrb orbWeak;
|
|
|
|
public static BloodOrb orbApprentice;
|
|
|
|
public static BloodOrb orbMagician;
|
|
|
|
public static BloodOrb orbMaster;
|
|
|
|
public static BloodOrb orbArchmage;
|
|
|
|
public static BloodOrb orbTranscendent;
|
|
|
|
|
2015-10-30 05:22:08 +00:00
|
|
|
public static Item bucketEssence;
|
|
|
|
|
2015-11-02 17:51:11 +00:00
|
|
|
public static Item activationCrystal;
|
|
|
|
|
2015-11-07 16:51:41 +00:00
|
|
|
public static Item sacrificialDagger;
|
|
|
|
|
2015-10-30 05:05:00 +00:00
|
|
|
public static Item sigilDivination;
|
2015-11-03 03:57:48 +00:00
|
|
|
public static Item sigilAir;
|
2015-11-08 02:37:12 +00:00
|
|
|
public static Item sigilWater;
|
|
|
|
public static Item sigilLava;
|
|
|
|
public static Item sigilVoid;
|
2015-11-08 22:42:02 +00:00
|
|
|
|
|
|
|
public static Item livingArmourHelmet;
|
|
|
|
public static Item livingArmourChest;
|
|
|
|
public static Item livingArmourLegs;
|
|
|
|
public static Item livingArmourBoots;
|
2015-10-30 03:22:14 +00:00
|
|
|
|
|
|
|
public static void init() {
|
|
|
|
bloodOrb = registerItem(new ItemBloodOrb());
|
2015-11-02 20:39:44 +00:00
|
|
|
BloodMagicAPI.setOrbItem(bloodOrb);
|
2015-10-30 03:22:14 +00:00
|
|
|
orbWeak = new BloodOrb("weak", 1, 5000);
|
|
|
|
OrbRegistry.registerOrb(orbWeak);
|
|
|
|
orbApprentice = new BloodOrb("apprentice", 2, 25000);
|
|
|
|
OrbRegistry.registerOrb(orbApprentice);
|
|
|
|
orbMagician = new BloodOrb("magician", 3, 150000);
|
|
|
|
OrbRegistry.registerOrb(orbMagician);
|
|
|
|
orbMaster = new BloodOrb("master", 4, 1000000);
|
|
|
|
OrbRegistry.registerOrb(orbMaster);
|
|
|
|
orbArchmage = new BloodOrb("archmage", 5, 10000000);
|
|
|
|
OrbRegistry.registerOrb(orbArchmage);
|
|
|
|
orbTranscendent = new BloodOrb("transcendent", 6, 30000000);
|
|
|
|
OrbRegistry.registerOrb(orbTranscendent);
|
2015-10-30 05:05:00 +00:00
|
|
|
|
2015-10-30 05:22:08 +00:00
|
|
|
bucketEssence = registerItem(new ItemBucketEssence());
|
|
|
|
|
2015-11-02 17:51:11 +00:00
|
|
|
activationCrystal = registerItem(new ItemActivationCrystal());
|
|
|
|
|
2015-11-07 16:51:41 +00:00
|
|
|
sacrificialDagger = registerItem(new ItemSacrificialDagger());
|
|
|
|
|
2015-10-30 05:05:00 +00:00
|
|
|
sigilDivination = registerItem(new ItemSigilDivination());
|
2015-11-03 03:57:48 +00:00
|
|
|
sigilAir = registerItem(new ItemSigilAir());
|
2015-11-08 02:37:12 +00:00
|
|
|
sigilWater = registerItem(new ItemSigilWater());
|
|
|
|
sigilLava = registerItem(new ItemSigilLava());
|
|
|
|
sigilVoid = registerItem(new ItemSigilVoid());
|
2015-11-08 22:42:02 +00:00
|
|
|
|
|
|
|
livingArmourHelmet = registerItem(new ItemLivingArmour(0), "ItemLivingArmourHelmet");
|
|
|
|
livingArmourChest = registerItem(new ItemLivingArmour(1), "ItemLivingArmourChest");
|
|
|
|
livingArmourLegs = registerItem(new ItemLivingArmour(2), "ItemLivingArmourLegs");
|
|
|
|
livingArmourBoots = registerItem(new ItemLivingArmour(3), "ItemLivingArmourBoots");
|
2015-10-30 03:22:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static void initRenders() {
|
2015-11-02 20:39:44 +00:00
|
|
|
InventoryRenderHelper renderHelper = BloodMagic.instance.getRenderHelper();
|
2015-10-30 03:22:14 +00:00
|
|
|
|
|
|
|
renderHelper.itemRenderAll(bloodOrb);
|
2015-11-02 20:39:44 +00:00
|
|
|
OrbRegistry.registerOrbTexture(orbWeak, BloodMagic.DOMAIN + "ItemBloodOrbWeak");
|
|
|
|
OrbRegistry.registerOrbTexture(orbApprentice, BloodMagic.DOMAIN + "ItemBloodOrbApprentice");
|
|
|
|
OrbRegistry.registerOrbTexture(orbMagician, BloodMagic.DOMAIN + "ItemBloodOrbMagician");
|
|
|
|
OrbRegistry.registerOrbTexture(orbMaster, BloodMagic.DOMAIN + "ItemBloodOrbMaster");
|
|
|
|
OrbRegistry.registerOrbTexture(orbArchmage, BloodMagic.DOMAIN + "ItemBloodOrbArchmage");
|
|
|
|
OrbRegistry.registerOrbTexture(orbTranscendent, BloodMagic.DOMAIN + "ItemBloodOrbTranscendent");
|
2015-10-30 05:22:08 +00:00
|
|
|
|
|
|
|
renderHelper.itemRender(bucketEssence);
|
|
|
|
|
2015-11-02 17:51:11 +00:00
|
|
|
renderHelper.itemRender(activationCrystal, 0);
|
|
|
|
renderHelper.itemRender(activationCrystal, 1);
|
2015-11-03 03:18:53 +00:00
|
|
|
renderHelper.itemRender(activationCrystal, 2, "ItemActivationCrystal0");
|
2015-11-02 17:51:11 +00:00
|
|
|
|
2015-11-07 16:51:41 +00:00
|
|
|
renderHelper.itemRender(sacrificialDagger, 0);
|
|
|
|
renderHelper.itemRender(sacrificialDagger, 1);
|
|
|
|
|
2015-10-30 05:22:08 +00:00
|
|
|
renderHelper.itemRender(sigilDivination);
|
2015-11-03 03:57:48 +00:00
|
|
|
renderHelper.itemRender(sigilAir);
|
2015-11-08 02:37:12 +00:00
|
|
|
renderHelper.itemRender(sigilWater);
|
|
|
|
renderHelper.itemRender(sigilLava);
|
|
|
|
renderHelper.itemRender(sigilVoid);
|
2015-11-08 22:42:02 +00:00
|
|
|
|
|
|
|
renderHelper.itemRender(livingArmourHelmet);
|
|
|
|
renderHelper.itemRender(livingArmourChest);
|
|
|
|
renderHelper.itemRender(livingArmourLegs);
|
|
|
|
renderHelper.itemRender(livingArmourBoots);
|
2015-10-30 03:22:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private static Item registerItem(Item item, String name) {
|
|
|
|
if (!ConfigHandler.itemBlacklist.contains(name))
|
|
|
|
GameRegistry.registerItem(item, name);
|
|
|
|
|
|
|
|
return item;
|
|
|
|
}
|
|
|
|
|
|
|
|
private static Item registerItem(Item item) {
|
|
|
|
return registerItem(item, item.getClass().getSimpleName());
|
|
|
|
}
|
|
|
|
}
|