diff --git a/build.properties b/build.properties index 474dd599..d02972cc 100644 --- a/build.properties +++ b/build.properties @@ -1,12 +1,12 @@ # -#Mon Dec 29 16:19:15 EST 2014 +#Sat Jan 03 19:36:41 EST 2015 mod_name=BloodMagic forge_version=10.13.2.1232 ccc_version=1.0.4.29 nei_version=1.0.3.64 //=Dependency Information package_group=com.wayoftime.bloodmagic -mod_version=1.3.0a +mod_version=1.3.0b minetweaker_version=Dev-1.7.10-3.0.9B -build_number=2 mc_version=1.7.10 +build_number=2 diff --git a/src/main/java/WayofTime/alchemicalWizardry/AlchemicalWizardry.java b/src/main/java/WayofTime/alchemicalWizardry/AlchemicalWizardry.java index 2e57a777..8276430f 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/AlchemicalWizardry.java +++ b/src/main/java/WayofTime/alchemicalWizardry/AlchemicalWizardry.java @@ -72,6 +72,9 @@ import WayofTime.alchemicalWizardry.common.alchemy.CombinedPotionRegistry; import WayofTime.alchemicalWizardry.common.block.ArmourForge; import WayofTime.alchemicalWizardry.common.bloodAltarUpgrade.UpgradedAltars; import WayofTime.alchemicalWizardry.common.book.BUEntries; +import WayofTime.alchemicalWizardry.common.commands.CommandBind; +import WayofTime.alchemicalWizardry.common.commands.CommandSN; +import WayofTime.alchemicalWizardry.common.commands.CommandUnbind; import WayofTime.alchemicalWizardry.common.compress.AdvancedCompressionHandler; import WayofTime.alchemicalWizardry.common.compress.BaseCompressionHandler; import WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.DemonPacketMinorGrunt; @@ -150,6 +153,7 @@ import WayofTime.alchemicalWizardry.common.rituals.RitualEffectLava; import WayofTime.alchemicalWizardry.common.rituals.RitualEffectLeap; import WayofTime.alchemicalWizardry.common.rituals.RitualEffectLifeConduit; import WayofTime.alchemicalWizardry.common.rituals.RitualEffectMagnetic; +import WayofTime.alchemicalWizardry.common.rituals.RitualEffectOmegaTest; import WayofTime.alchemicalWizardry.common.rituals.RitualEffectSoulBound; import WayofTime.alchemicalWizardry.common.rituals.RitualEffectSpawnWard; import WayofTime.alchemicalWizardry.common.rituals.RitualEffectSummonMeteor; @@ -255,9 +259,6 @@ import WayofTime.alchemicalWizardry.common.tileEntity.TESpellParadigmBlock; import WayofTime.alchemicalWizardry.common.tileEntity.TETeleposer; import WayofTime.alchemicalWizardry.common.tileEntity.TEWritingTable; import WayofTime.alchemicalWizardry.common.tileEntity.gui.GuiHandler; -import WayofTime.alchemicalWizardry.common.commands.CommandBind; -import WayofTime.alchemicalWizardry.common.commands.CommandUnbind; -import WayofTime.alchemicalWizardry.common.commands.CommandSN; import WayofTime.alchemicalWizardry.common.tweaker.MineTweakerIntegration; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.Loader; @@ -275,7 +276,7 @@ import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -@Mod(modid = "AWWayofTime", name = "AlchemicalWizardry", version = "v1.3.0a", guiFactory = "WayofTime.alchemicalWizardry.client.gui.ConfigGuiFactory") +@Mod(modid = "AWWayofTime", name = "AlchemicalWizardry", version = "v1.3.0b", guiFactory = "WayofTime.alchemicalWizardry.client.gui.ConfigGuiFactory") public class AlchemicalWizardry { @@ -1264,6 +1265,7 @@ public class AlchemicalWizardry Rituals.registerRitual("AW029VeilOfEvil", 1, 150000, new RitualEffectVeilOfEvil(), "Veil of Evil", new AlchemyCircleRenderer(new ResourceLocation("alchemicalwizardry:textures/models/SimpleTransCircle.png"), 0, 0, 0, 255, 0, 0.501, 0.501, 0, 1.5, false)); Rituals.registerRitual("AW030FullStomach", 1, 100000, new RitualEffectFullStomach(), "Requiem of the Satiated Stomach", new AlchemyCircleRenderer(new ResourceLocation("alchemicalwizardry:textures/models/SimpleTransCircle.png"), 0, 0, 0, 255, 0, 0.501, 0.501, 0, 1.5, false)); Rituals.registerRitual("AW031Convocation",isDemonRitualCreativeOnly ? 10 : 2, 15000000, new RitualEffectDemonPortal(), "Convocation of the Damned", new AlchemyCircleRenderer(new ResourceLocation("alchemicalwizardry:textures/models/TransCircleDemon.png"), 220, 22, 22, 255, 0, 0.501, 0.501, 0, 5, false)); + Rituals.registerRitual("AW032", 1, 100, new RitualEffectOmegaTest(), "Symmetry of the Omega"); //Rituals.registerRitual(1,100,new RitualEffectApiaryOverclock(),"Apiary Overclock")); } @@ -1523,7 +1525,7 @@ public class AlchemicalWizardry continue; } - strLine = strLine.replace('”', '"').replace('“','"'); + strLine = strLine.replace('”', '"').replace('“','"'); if(Minecraft.getMinecraft() != null && Minecraft.getMinecraft().fontRenderer != null) { diff --git a/src/main/java/WayofTime/alchemicalWizardry/BloodMagicConfiguration.java b/src/main/java/WayofTime/alchemicalWizardry/BloodMagicConfiguration.java index 31445c7e..20ecf663 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/BloodMagicConfiguration.java +++ b/src/main/java/WayofTime/alchemicalWizardry/BloodMagicConfiguration.java @@ -14,7 +14,7 @@ import WayofTime.alchemicalWizardry.client.renderer.ColourThreshold; import WayofTime.alchemicalWizardry.client.renderer.RenderHelper; import WayofTime.alchemicalWizardry.common.demonVillage.DemonVillagePath; import WayofTime.alchemicalWizardry.common.demonVillage.tileEntity.TEDemonPortal; -import WayofTime.alchemicalWizardry.common.items.BoundArmour; +import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour; import WayofTime.alchemicalWizardry.common.summoning.meteor.MeteorParadigm; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.relauncher.Side; diff --git a/src/main/java/WayofTime/alchemicalWizardry/ModItems.java b/src/main/java/WayofTime/alchemicalWizardry/ModItems.java index 7c5052aa..6595378b 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/ModItems.java +++ b/src/main/java/WayofTime/alchemicalWizardry/ModItems.java @@ -14,7 +14,6 @@ import WayofTime.alchemicalWizardry.common.items.ArchmageBloodOrb; import WayofTime.alchemicalWizardry.common.items.ArmourInhibitor; import WayofTime.alchemicalWizardry.common.items.BlankSpell; import WayofTime.alchemicalWizardry.common.items.BloodShard; -import WayofTime.alchemicalWizardry.common.items.BoundArmour; import WayofTime.alchemicalWizardry.common.items.BoundAxe; import WayofTime.alchemicalWizardry.common.items.BoundPickaxe; import WayofTime.alchemicalWizardry.common.items.BoundShovel; @@ -46,6 +45,11 @@ import WayofTime.alchemicalWizardry.common.items.SacrificialDagger; import WayofTime.alchemicalWizardry.common.items.TelepositionFocus; import WayofTime.alchemicalWizardry.common.items.TranscendentBloodOrb; import WayofTime.alchemicalWizardry.common.items.WaterScribeTool; +import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour; +import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmour; +import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourEarth; +import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourWater; +import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourWind; import WayofTime.alchemicalWizardry.common.items.energy.ItemAttunedCrystal; import WayofTime.alchemicalWizardry.common.items.energy.ItemDestinationClearer; import WayofTime.alchemicalWizardry.common.items.energy.ItemTankSegmenter; @@ -206,6 +210,21 @@ public class ModItems public static Item transcendentBloodOrb; public static Item itemAssassinSigil; + + public static OmegaArmour boundHelmetWater; + public static OmegaArmour boundPlateWater; + public static OmegaArmour boundLeggingsWater; + public static OmegaArmour boundBootsWater; + + public static OmegaArmour boundHelmetEarth; + public static OmegaArmour boundPlateEarth; + public static OmegaArmour boundLeggingsEarth; + public static OmegaArmour boundBootsEarth; + + public static OmegaArmour boundHelmetWind; + public static OmegaArmour boundPlateWind; + public static OmegaArmour boundLeggingsWind; + public static OmegaArmour boundBootsWind; public static void init() { @@ -309,6 +328,21 @@ public class ModItems itemHarvestSigil = new ItemHarvestSigil().setUnlocalizedName("itemHarvestSigil"); itemCompressionSigil = new ItemPackRatSigil().setUnlocalizedName("itemCompressionSigil"); itemAssassinSigil = new ItemSigilOfTheAssassin().setUnlocalizedName("itemAssassinSigil"); + + boundHelmetWater = (OmegaArmour) new OmegaArmourWater(0).setUnlocalizedName("boundHelmetWater"); + boundPlateWater = (OmegaArmour) new OmegaArmourWater(1).setUnlocalizedName("boundPlateWater"); + boundLeggingsWater = (OmegaArmour) new OmegaArmourWater(2).setUnlocalizedName("boundLeggingsWater"); + boundBootsWater = (OmegaArmour) new OmegaArmourWater(3).setUnlocalizedName("boundBootsWater"); + + boundHelmetEarth = (OmegaArmour) new OmegaArmourEarth(0).setUnlocalizedName("boundHelmetEarth"); + boundPlateEarth = (OmegaArmour) new OmegaArmourEarth(1).setUnlocalizedName("boundPlateEarth"); + boundLeggingsEarth = (OmegaArmour) new OmegaArmourEarth(2).setUnlocalizedName("boundLeggingsEarth"); + boundBootsEarth = (OmegaArmour) new OmegaArmourEarth(3).setUnlocalizedName("boundBootsEarth"); + + boundHelmetWind = (OmegaArmour) new OmegaArmourWind(0).setUnlocalizedName("boundHelmetWind"); + boundPlateWind = (OmegaArmour) new OmegaArmourWind(1).setUnlocalizedName("boundPlateWind"); + boundLeggingsWind = (OmegaArmour) new OmegaArmourWind(2).setUnlocalizedName("boundLeggingsWind"); + boundBootsWind = (OmegaArmour) new OmegaArmourWind(3).setUnlocalizedName("boundBootsWind"); } public static void registerItems() @@ -417,6 +451,21 @@ public class ModItems GameRegistry.registerItem(ModItems.itemHarvestSigil, "itemHarvestSigil"); GameRegistry.registerItem(ModItems.itemCompressionSigil, "itemCompressionSigil"); GameRegistry.registerItem(ModItems.itemAssassinSigil, "itemAssassinSigil"); + + GameRegistry.registerItem(ModItems.boundHelmetWater, "boundHelmetWater"); + GameRegistry.registerItem(ModItems.boundPlateWater, "boundPlateWater"); + GameRegistry.registerItem(ModItems.boundLeggingsWater, "boundLeggingsWater"); + GameRegistry.registerItem(ModItems.boundBootsWater, "boundBootsWater"); + + GameRegistry.registerItem(ModItems.boundHelmetEarth, "boundHelmetEarth"); + GameRegistry.registerItem(ModItems.boundPlateEarth, "boundPlateEarth"); + GameRegistry.registerItem(ModItems.boundLeggingsEarth, "boundLeggingsEarth"); + GameRegistry.registerItem(ModItems.boundBootsEarth, "boundBootsEarth"); + + GameRegistry.registerItem(ModItems.boundHelmetWind, "boundHelmetWind"); + GameRegistry.registerItem(ModItems.boundPlateWind, "boundPlateWind"); + GameRegistry.registerItem(ModItems.boundLeggingsWind, "boundLeggingsWind"); + GameRegistry.registerItem(ModItems.boundBootsWind, "boundBootsWind"); //GameRegistry.registerItem(ModItems.itemBloodFrame, "itemBloodFrame"); } } diff --git a/src/main/java/WayofTime/alchemicalWizardry/api/alchemy/energy/ReagentRegistry.java b/src/main/java/WayofTime/alchemicalWizardry/api/alchemy/energy/ReagentRegistry.java index 16306ef4..20b43931 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/api/alchemy/energy/ReagentRegistry.java +++ b/src/main/java/WayofTime/alchemicalWizardry/api/alchemy/energy/ReagentRegistry.java @@ -49,7 +49,7 @@ public class ReagentRegistry sanctusReagent.setColour(255, 255, 0, 255); incendiumReagent.setColour(255, 0, 0, 255); - aquasalusReagent.setColour(47, 0, 196, 255); + aquasalusReagent.setColour(0, 0, 255, 255); magicalesReagent.setColour(150, 0, 146, 255); aetherReagent.setColour(105, 223, 86, 255); crepitousReagent.setColour(145, 145, 145, 255); diff --git a/src/main/java/WayofTime/alchemicalWizardry/book/registries/RevivingRegistry.java b/src/main/java/WayofTime/alchemicalWizardry/book/registries/RevivingRegistry.java deleted file mode 100644 index 648d288c..00000000 --- a/src/main/java/WayofTime/alchemicalWizardry/book/registries/RevivingRegistry.java +++ /dev/null @@ -1,13 +0,0 @@ -package WayofTime.alchemicalWizardry.book.registries; - -import java.util.HashMap; - -import WayofTime.alchemicalWizardry.book.compact.CompactItem; -import WayofTime.alchemicalWizardry.book.interfaces.IReviving; - -public class RevivingRegistry { - public static void registerReviving(CompactItem ingredients, IReviving reviving){ - recipes.put(ingredients, reviving); - } - public static HashMap recipes = new HashMap(); -} \ No newline at end of file diff --git a/src/main/java/WayofTime/alchemicalWizardry/client/renderer/RenderHelper.java b/src/main/java/WayofTime/alchemicalWizardry/client/renderer/RenderHelper.java index e743e12d..9071683d 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/client/renderer/RenderHelper.java +++ b/src/main/java/WayofTime/alchemicalWizardry/client/renderer/RenderHelper.java @@ -24,6 +24,7 @@ import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentContainerInfo; import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry; import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentStack; import WayofTime.alchemicalWizardry.api.spell.APISpellHelper; +import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmour; import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper; public class RenderHelper @@ -70,12 +71,18 @@ public class RenderHelper GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f); } - ReagentStack reagentStack = new ReagentStack(ReagentRegistry.sanctusReagent, 1000); - int maxAmount = 3000; - - if(reagentStack != null && reagentStack.amount > 0) + ItemStack stack = player.inventory.armorItemInSlot(2); + if(stack != null && stack.getItem() instanceof OmegaArmour) { -// renderTestHUD(mc, reagentStack, maxAmount); + int duration = ((OmegaArmour)stack.getItem()).getDuration(stack); + ReagentStack reagentStack = new ReagentStack(ReagentRegistry.aquasalusReagent, duration); + int maxAmount = 100; + + if(reagentStack != null && reagentStack.amount > 0) + { + renderTestHUD(mc, reagentStack, maxAmount); + } + } if(SpellHelper.canPlayerSeeLPBar(player)) @@ -224,8 +231,8 @@ public class RenderHelper int amount = Math.max((int) (256 * ((double)(maxAmount - reagentStack.amount) / maxAmount)), 0); - int x = (16 - xSize) / 2 * 8; - int y = (150 - ySize) / 2 * 8; + int x = (lpBarX + 16 - xSize / 2) * 8; + int y = (lpBarY - ySize / 2) * 8; ResourceLocation test2 = new ResourceLocation("alchemicalwizardry", "textures/gui/container1.png"); GL11.glColor4f(reagent.getColourRed(), reagent.getColourGreen(), reagent.getColourBlue(), 1.0F); diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/AlchemicalWizardryEventHooks.java b/src/main/java/WayofTime/alchemicalWizardry/common/AlchemicalWizardryEventHooks.java index 1078fc69..b826b7ac 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/AlchemicalWizardryEventHooks.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/AlchemicalWizardryEventHooks.java @@ -33,7 +33,7 @@ import WayofTime.alchemicalWizardry.AlchemicalWizardry; import WayofTime.alchemicalWizardry.BloodMagicConfiguration; import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler; import WayofTime.alchemicalWizardry.common.entity.projectile.EnergyBlastProjectile; -import WayofTime.alchemicalWizardry.common.items.BoundArmour; +import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour; import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper; import WayofTime.alchemicalWizardry.common.tileEntity.TEMasterStone; import cpw.mods.fml.client.event.ConfigChangedEvent; diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/block/ArmourForge.java b/src/main/java/WayofTime/alchemicalWizardry/common/block/ArmourForge.java index df652209..1926e450 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/block/ArmourForge.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/block/ArmourForge.java @@ -4,7 +4,7 @@ import WayofTime.alchemicalWizardry.AlchemicalWizardry; import WayofTime.alchemicalWizardry.ModItems; import WayofTime.alchemicalWizardry.api.items.interfaces.ArmourUpgrade; import WayofTime.alchemicalWizardry.common.ArmourComponent; -import WayofTime.alchemicalWizardry.common.items.BoundArmour; +import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour; import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper; import WayofTime.alchemicalWizardry.common.tileEntity.TESocket; import cpw.mods.fml.relauncher.Side; diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/items/CheatyItem.java b/src/main/java/WayofTime/alchemicalWizardry/common/items/CheatyItem.java index d4d9b19f..ebcea70a 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/items/CheatyItem.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/items/CheatyItem.java @@ -67,7 +67,7 @@ public class CheatyItem extends Item implements IBindable SpellHelper.sendIndexedParticleToAllAround(world, posX, posY, posZ, 20, world.provider.dimensionId, 4, posX, posY, posZ); } - if (!par3EntityPlayer.worldObj.isRemote) + if (par3EntityPlayer.worldObj.isRemote) { return par1ItemStack; } diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/items/BoundArmour.java b/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/BoundArmour.java similarity index 99% rename from src/main/java/WayofTime/alchemicalWizardry/common/items/BoundArmour.java rename to src/main/java/WayofTime/alchemicalWizardry/common/items/armour/BoundArmour.java index 68931543..06f628c5 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/items/BoundArmour.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/BoundArmour.java @@ -1,4 +1,4 @@ -package WayofTime.alchemicalWizardry.common.items; +package WayofTime.alchemicalWizardry.common.items.armour; import java.util.List; @@ -27,6 +27,8 @@ import WayofTime.alchemicalWizardry.ModItems; import WayofTime.alchemicalWizardry.api.alchemy.energy.IAlchemyGoggles; import WayofTime.alchemicalWizardry.api.items.interfaces.ArmourUpgrade; import WayofTime.alchemicalWizardry.api.items.interfaces.IBindable; +import WayofTime.alchemicalWizardry.common.items.EnergyItems; +import WayofTime.alchemicalWizardry.common.items.ILPGauge; import WayofTime.alchemicalWizardry.common.items.sigil.DivinationSigil; import WayofTime.alchemicalWizardry.common.renderer.model.ModelOmegaArmour; import cpw.mods.fml.common.Optional; diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/OmegaArmour.java b/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/OmegaArmour.java new file mode 100644 index 00000000..df1c8b5b --- /dev/null +++ b/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/OmegaArmour.java @@ -0,0 +1,206 @@ +package WayofTime.alchemicalWizardry.common.items.armour; + +import net.minecraft.client.model.ModelBiped; +import net.minecraft.entity.Entity; +import net.minecraft.entity.EntityLivingBase; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.EnumAction; +import net.minecraft.item.ItemArmor; +import net.minecraft.item.ItemStack; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.world.World; +import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler; +import WayofTime.alchemicalWizardry.common.omega.OmegaParadigm; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; + +public abstract class OmegaArmour extends BoundArmour +{ + public OmegaParadigm paradigm; + + public OmegaArmour(int armorType) + { + super(armorType); + } + + public void setParadigm(OmegaParadigm paradigm) + { + this.paradigm = paradigm; + } + + @Override + public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) + { + super.onArmorTick(world, player, itemStack); + if(!this.decrementDuration(itemStack)) + { + ItemStack stack = this.getContainedArmourStack(itemStack); + player.inventory.armorInventory[3-this.armorType] = stack; + } + } + + public ItemStack getSubstituteStack(ItemStack boundStack) + { + ItemStack omegaStack = new ItemStack(this); + this.setContainedArmourStack(omegaStack, boundStack); + SoulNetworkHandler.checkAndSetItemOwner(omegaStack, SoulNetworkHandler.getOwnerName(boundStack)); + this.setItemDuration(omegaStack, 100); + return omegaStack; + } + + public void setContainedArmourStack(ItemStack omegaStack, ItemStack boundStack) + { + if(omegaStack == null || boundStack == null) + { + return; + } + + NBTTagCompound tag = new NBTTagCompound(); + boundStack.writeToNBT(tag); + + NBTTagCompound omegaTag = omegaStack.getTagCompound(); + if(omegaTag == null) + { + omegaTag = new NBTTagCompound(); + omegaStack.setTagCompound(omegaTag); + } + + omegaTag.setTag("armour", tag); + } + + public ItemStack getContainedArmourStack(ItemStack omegaStack) + { + NBTTagCompound omegaTag = omegaStack.getTagCompound(); + if(omegaTag == null) + { + return null; + } + + NBTTagCompound tag = omegaTag.getCompoundTag("armour"); + ItemStack armourStack = ItemStack.loadItemStackFromNBT(tag); + + return armourStack; + } + + public void setItemDuration(ItemStack omegaStack, int duration) + { + NBTTagCompound tag = omegaStack.getTagCompound(); + if(tag == null) + { + tag = new NBTTagCompound(); + omegaStack.setTagCompound(tag); + } + + tag.setInteger("duration", duration); + } + + public int getDuration(ItemStack omegaStack) + { + if(omegaStack.hasTagCompound()) + { + return omegaStack.getTagCompound().getInteger("duration"); + }else + { + return 0; + } + } + + /** + * + * @param omegaStack + * @return true if there is duration left (duration > 0) + */ + public boolean decrementDuration(ItemStack omegaStack) + { + int duration = this.getDuration(omegaStack); + + if(duration > 0) + { + this.setItemDuration(omegaStack, duration - 1); + return true; + } + else + { + return false; + } + } + + @Override + public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) + { + return "alchemicalwizardry:models/armor/OmegaWater.png"; + } + + public abstract ModelBiped getChestModel(); + + public abstract ModelBiped getLegsModel(); + + ModelBiped model1 = null; + ModelBiped model2 = null; + ModelBiped model = null; + + @Override + @SideOnly(Side.CLIENT) + public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, int armorSlot) + { + if (tryComplexRendering) + { + int type = ((ItemArmor) itemStack.getItem()).armorType; + if (this.model1 == null) + { + this.model1 = getChestModel(); + } + if (this.model2 == null) + { + this.model2 = getLegsModel(); + } + + if (type == 1 || type == 3 || type == 0) + { + this.model = model1; + } else + { + this.model = model2; + } + + if (this.model != null) + { + this.model.bipedHead.showModel = (type == 0); + this.model.bipedHeadwear.showModel = (type == 0); + this.model.bipedBody.showModel = ((type == 1) || (type == 2)); + this.model.bipedLeftArm.showModel = (type == 1); + this.model.bipedRightArm.showModel = (type == 1); + this.model.bipedLeftLeg.showModel = (type == 2 || type == 3); + this.model.bipedRightLeg.showModel = (type == 2 || type == 3); + this.model.isSneak = entityLiving.isSneaking(); + + this.model.isRiding = entityLiving.isRiding(); + this.model.isChild = entityLiving.isChild(); + + this.model.aimedBow = false; + this.model.heldItemRight = (entityLiving.getHeldItem() != null ? 1 : 0); + + if ((entityLiving instanceof EntityPlayer)) + { + if (((EntityPlayer) entityLiving).getItemInUseDuration() > 0) + { + EnumAction enumaction = ((EntityPlayer) entityLiving).getItemInUse().getItemUseAction(); + if (enumaction == EnumAction.block) + { + this.model.heldItemRight = 3; + } else if (enumaction == EnumAction.bow) + { + this.model.aimedBow = true; + } + } + } + } + + return model; + + } else + { + return super.getArmorModel(entityLiving, itemStack, armorSlot); + } + } +} diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/OmegaArmourEarth.java b/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/OmegaArmourEarth.java new file mode 100644 index 00000000..ef208de7 --- /dev/null +++ b/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/OmegaArmourEarth.java @@ -0,0 +1,32 @@ +package WayofTime.alchemicalWizardry.common.items.armour; + +import net.minecraft.client.model.ModelBiped; +import net.minecraft.entity.Entity; +import net.minecraft.item.ItemStack; +import WayofTime.alchemicalWizardry.common.renderer.model.ModelOmegaEarth; + +public class OmegaArmourEarth extends OmegaArmour +{ + public OmegaArmourEarth(int armorType) + { + super(armorType); + } + + @Override + public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) + { + return "alchemicalwizardry:models/armor/OmegaEarth.png"; + } + + @Override + public ModelBiped getChestModel() + { + return new ModelOmegaEarth(1.0f, true, true, false, true); + } + + @Override + public ModelBiped getLegsModel() + { + return new ModelOmegaEarth(0.5f, false, false, true, false); + } +} diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/OmegaArmourWater.java b/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/OmegaArmourWater.java new file mode 100644 index 00000000..be5a98cb --- /dev/null +++ b/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/OmegaArmourWater.java @@ -0,0 +1,32 @@ +package WayofTime.alchemicalWizardry.common.items.armour; + +import net.minecraft.client.model.ModelBiped; +import net.minecraft.entity.Entity; +import net.minecraft.item.ItemStack; +import WayofTime.alchemicalWizardry.common.renderer.model.ModelOmegaWater; + +public class OmegaArmourWater extends OmegaArmour +{ + public OmegaArmourWater(int armorType) + { + super(armorType); + } + + @Override + public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) + { + return "alchemicalwizardry:models/armor/OmegaWater.png"; + } + + @Override + public ModelBiped getChestModel() + { + return new ModelOmegaWater(1.0f, true, true, false, true); + } + + @Override + public ModelBiped getLegsModel() + { + return new ModelOmegaWater(0.5f, false, false, true, false); + } +} diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/OmegaArmourWind.java b/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/OmegaArmourWind.java new file mode 100644 index 00000000..c2205070 --- /dev/null +++ b/src/main/java/WayofTime/alchemicalWizardry/common/items/armour/OmegaArmourWind.java @@ -0,0 +1,32 @@ +package WayofTime.alchemicalWizardry.common.items.armour; + +import net.minecraft.client.model.ModelBiped; +import net.minecraft.entity.Entity; +import net.minecraft.item.ItemStack; +import WayofTime.alchemicalWizardry.common.renderer.model.ModelOmegaWind; + +public class OmegaArmourWind extends OmegaArmour +{ + public OmegaArmourWind(int armorType) + { + super(armorType); + } + + @Override + public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) + { + return "alchemicalwizardry:models/armor/OmegaWind.png"; + } + + @Override + public ModelBiped getChestModel() + { + return new ModelOmegaWind(1.0f, true, true, false, true); + } + + @Override + public ModelBiped getLegsModel() + { + return new ModelOmegaWind(0.5f, false, false, true, false); + } +} diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/items/sigil/ItemHarvestSigil.java b/src/main/java/WayofTime/alchemicalWizardry/common/items/sigil/ItemHarvestSigil.java index a177b8ac..f253d462 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/items/sigil/ItemHarvestSigil.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/items/sigil/ItemHarvestSigil.java @@ -133,11 +133,16 @@ public class ItemHarvestSigil extends EnergyItems implements IHolding, ArmourUpg @Override public void onUpdate(ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5) { - if (!(par3Entity instanceof EntityPlayer) || par2World.isRemote) + if ((!(par3Entity instanceof EntityPlayer)) || par2World.isRemote) { return; } + if(par2World.isRemote) + { + return; + } + EntityPlayer par3EntityPlayer = (EntityPlayer) par3Entity; if (par1ItemStack.stackTagCompound == null) diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/omega/OmegaParadigm.java b/src/main/java/WayofTime/alchemicalWizardry/common/omega/OmegaParadigm.java new file mode 100644 index 00000000..102d477a --- /dev/null +++ b/src/main/java/WayofTime/alchemicalWizardry/common/omega/OmegaParadigm.java @@ -0,0 +1,50 @@ +package WayofTime.alchemicalWizardry.common.omega; + +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemStack; +import WayofTime.alchemicalWizardry.ModItems; +import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmour; + +public class OmegaParadigm +{ + public OmegaArmour helmet; + public OmegaArmour chestPiece; + public OmegaArmour leggings; + public OmegaArmour boots; + + public OmegaParadigm(OmegaArmour helmet, OmegaArmour chestPiece, OmegaArmour leggings, OmegaArmour boots) + { + this.helmet = helmet; + this.chestPiece = chestPiece; + this.leggings = leggings; + this.boots = boots; + + this.helmet.setParadigm(this); + this.chestPiece.setParadigm(this); + this.leggings.setParadigm(this); + this.boots.setParadigm(this); + } + + public void convertPlayerArmour(EntityPlayer player) + { + ItemStack[] armours = player.inventory.armorInventory; + + ItemStack helmetStack = armours[3]; + ItemStack chestStack = armours[2]; + ItemStack leggingsStack = armours[1]; + ItemStack bootsStack = armours[0]; + + if(helmetStack != null && helmetStack.getItem() == ModItems.boundHelmet && chestStack != null && chestStack.getItem() == ModItems.boundPlate && leggingsStack != null && leggingsStack.getItem() == ModItems.boundLeggings && bootsStack != null && bootsStack.getItem() == ModItems.boundBoots) + { + ItemStack omegaHelmetStack = helmet.getSubstituteStack(helmetStack); + ItemStack omegaChestStack = chestPiece.getSubstituteStack(chestStack); + ItemStack omegaLeggingsStack = leggings.getSubstituteStack(leggingsStack); + ItemStack omegaBootsStack = boots.getSubstituteStack(bootsStack); + + armours[3] = omegaHelmetStack; + armours[2] = omegaChestStack; + armours[1] = omegaLeggingsStack; + armours[0] = omegaBootsStack; + } + } +} diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/omega/OmegaRegistry.java b/src/main/java/WayofTime/alchemicalWizardry/common/omega/OmegaRegistry.java new file mode 100644 index 00000000..776538db --- /dev/null +++ b/src/main/java/WayofTime/alchemicalWizardry/common/omega/OmegaRegistry.java @@ -0,0 +1,6 @@ +package WayofTime.alchemicalWizardry.common.omega; + +public class OmegaRegistry +{ + +} diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/renderer/model/ModelOmegaEarth.java b/src/main/java/WayofTime/alchemicalWizardry/common/renderer/model/ModelOmegaEarth.java new file mode 100644 index 00000000..4af279d5 --- /dev/null +++ b/src/main/java/WayofTime/alchemicalWizardry/common/renderer/model/ModelOmegaEarth.java @@ -0,0 +1,509 @@ +package WayofTime.alchemicalWizardry.common.renderer.model; + +import net.minecraft.client.model.ModelBiped; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; + +/** + * OmegaEarth.tcn - TechneToTabulaImporter + * Created using Tabula 4.1.0 + */ +public class ModelOmegaEarth extends ModelBiped{ + + public ModelRenderer backPlate; + public ModelRenderer topPlate; + public ModelRenderer sidePlate6; + public ModelRenderer sidePlate5; + public ModelRenderer sidePlate4; + public ModelRenderer sidePlate3; + public ModelRenderer sidePlate2; + public ModelRenderer sidePlate1; + public ModelRenderer facePlate6; + public ModelRenderer facePlate1; + public ModelRenderer facePlate5; + public ModelRenderer facePlate4; + public ModelRenderer facePlate2; + public ModelRenderer facePlate3; + public ModelRenderer chestMain; + public ModelRenderer backPlate_1; + public ModelRenderer chestPlate1; + public ModelRenderer chestPlate2; + public ModelRenderer chestPlate3; + public ModelRenderer chestPlate4; + public ModelRenderer chestPlate5; + public ModelRenderer chestPlate6; + public ModelRenderer belt; + public ModelRenderer rightShoulder; + public ModelRenderer rightArm; + public ModelRenderer rightArmSymbol; + public ModelRenderer rightArmPlate1; + public ModelRenderer rightArmPlate2; + public ModelRenderer rightArmPlate3; + public ModelRenderer rightArmPlate4; + public ModelRenderer leftShoulder; + public ModelRenderer leftArm; + public ModelRenderer leftArmSymbol; + public ModelRenderer leftArmPlate1; + public ModelRenderer leftArmPlate2; + public ModelRenderer leftArmPlate3; + public ModelRenderer leftArmPlate4; + public ModelRenderer rightLeg; + public ModelRenderer rightLegPlate1; + public ModelRenderer rightLegPlate2; + public ModelRenderer rightLegPlate3; + public ModelRenderer rightLegPlate4; + public ModelRenderer rightLegPlate5; + public ModelRenderer rightLegPlate6; + public ModelRenderer rightLegPlate7; + public ModelRenderer rightLegPlate8; + public ModelRenderer rightLegPlate10; + public ModelRenderer rightLegPlate9; + public ModelRenderer rightLegPlate11; + public ModelRenderer rightLegPlate12; + public ModelRenderer rightLegPlate13; + public ModelRenderer rightBoot1; + public ModelRenderer rightBoot2; + public ModelRenderer rightBoot3; + public ModelRenderer leftLeg; + public ModelRenderer leftLegPlate1; + public ModelRenderer leftLegPlate2; + public ModelRenderer leftLegPlate3; + public ModelRenderer leftLegPlate4; + public ModelRenderer leftLegPlate5; + public ModelRenderer leftLegPlate6; + public ModelRenderer leftLegPlate7; + public ModelRenderer leftLegPlate8; + public ModelRenderer leftLegPlate9; + public ModelRenderer leftLegPlate10; + public ModelRenderer leftLegPlate11; + public ModelRenderer leftLegPlate12; + public ModelRenderer leftLegPlate13; + public ModelRenderer leftBoot1; + public ModelRenderer leftBoot2; + public ModelRenderer leftBoot3; + + public ModelOmegaEarth(float f, boolean addHelmet, boolean addChestPiece, boolean addLeggings, boolean addBoots) + { + super(f, 0.0f, 256, 128); + this.leftShoulder = new ModelRenderer(this, 29, 33); + this.leftShoulder.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftShoulder.addBox(-1.0F, -3.0F, -3.0F, 6, 5, 6, 0.0F); + this.leftBoot1 = new ModelRenderer(this, 44, 61); + this.leftBoot1.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftBoot1.addBox(-2.0F, 9.5F, -5.0F, 5, 3, 8, 0.0F); + this.leftLegPlate9 = new ModelRenderer(this, 0, 86); + this.leftLegPlate9.setRotationPoint(0.0F, 2.5F, 0.0F); + this.leftLegPlate9.addBox(-2.5F, 1.5F, 1.3F, 5, 3, 1, 0.0F); + this.setRotateAngle(leftLegPlate9, 0.40142572795869574F, -0.0F, 0.0F); + this.facePlate3 = new ModelRenderer(this, 0, 100); + this.facePlate3.setRotationPoint(0.0F, 0.0F, 0.0F); + this.facePlate3.addBox(-1.0F, -7.5F, -6.5F, 5, 4, 1, 0.0F); + this.setRotateAngle(facePlate3, -0.17453292012214658F, -0.15707963705062866F, 0.0F); + this.leftArm = new ModelRenderer(this, 29, 45); + this.leftArm.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftArm.addBox(-1.0F-0.5f, 2.0F, -2.5F, 5, 9, 5, 0.0F); + this.leftLegPlate11 = new ModelRenderer(this, 0, 91); + this.leftLegPlate11.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftLegPlate11.addBox(1.0F, 1.5F, -2.5F, 1, 3, 5, 0.0F); + this.setRotateAngle(leftLegPlate11, 0.0F, -0.0F, -0.40142572795869574F); + this.leftBoot3 = new ModelRenderer(this, 45, 73); + this.leftBoot3.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftBoot3.addBox(0.0F, 9.0F, -4.5F, 1, 3, 7, 0.0F); + this.setRotateAngle(leftBoot3, 0.10471975511965977F, -0.0F, -0.2617993877991494F); + this.leftLegPlate5 = new ModelRenderer(this, 13, 86); + this.leftLegPlate5.setRotationPoint(0.0F, 5.0F, 0.0F); + this.leftLegPlate5.addBox(-2.5F, 1.5F, -2.8F, 3, 2, 1, 0.0F); + this.setRotateAngle(leftLegPlate5, -0.40142572795869574F, -0.0F, 0.0F); + this.leftArmPlate1 = new ModelRenderer(this, 0, 56); + this.leftArmPlate1.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftArmPlate1.addBox(-2.0F, -5.0F, -4.5F, 6, 3, 1, 0.0F); + this.setRotateAngle(leftArmPlate1, -0.19198621771937624F, -0.0F, 0.9599310885968813F); + this.rightLegPlate13 = new ModelRenderer(this, 0, 91); + this.rightLegPlate13.mirror = true; + this.rightLegPlate13.setRotationPoint(0.0F, 5.0F, 0.0F); + this.rightLegPlate13.addBox(-2.0F, 1.5F, -2.5F, 1, 3, 5, 0.0F); + this.setRotateAngle(rightLegPlate13, 0.0F, -0.0F, 0.40142572795869574F); + this.rightLegPlate2 = new ModelRenderer(this, 0, 86); + this.rightLegPlate2.mirror = true; + this.rightLegPlate2.setRotationPoint(0.0F, 2.5F, 0.0F); + this.rightLegPlate2.addBox(-2.5F, 1.5F, -2.3F, 5, 3, 1, 0.0F); + this.setRotateAngle(rightLegPlate2, -0.40142572795869574F, -0.0F, 0.0F); + this.rightLegPlate8 = new ModelRenderer(this, 0, 86); + this.rightLegPlate8.mirror = true; + this.rightLegPlate8.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightLegPlate8.addBox(-2.5F, 1.5F, 1.3F, 5, 3, 1, 0.0F); + this.setRotateAngle(rightLegPlate8, 0.40142572795869574F, -0.0F, 0.0F); + this.rightLegPlate1 = new ModelRenderer(this, 0, 86); + this.rightLegPlate1.mirror = true; + this.rightLegPlate1.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightLegPlate1.addBox(-2.5F, 1.5F, -2.3F, 5, 3, 1, 0.0F); + this.setRotateAngle(rightLegPlate1, -0.40142572795869574F, -0.0F, 0.0F); + this.rightLegPlate7 = new ModelRenderer(this, 13, 90); + this.rightLegPlate7.mirror = true; + this.rightLegPlate7.setRotationPoint(0.0F, 5.0F, 0.0F); + this.rightLegPlate7.addBox(-1.5F, 1.0F, -2.8F, 1, 2, 1, 0.0F); + this.setRotateAngle(rightLegPlate7, -0.40142572795869574F, -0.0F, 0.0F); + this.chestPlate6 = new ModelRenderer(this, 0, 52); + this.chestPlate6.mirror = true; + this.chestPlate6.setRotationPoint(0.0F, -3.5F, 0.0F); + this.chestPlate6.addBox(-5.5F, 2.0F, -4.5F, 5, 2, 1, 0.0F); + this.setRotateAngle(chestPlate6, 0.3141592741012573F, -0.0F, -0.12217304855585097F); + + this.sidePlate5 = new ModelRenderer(this, 13, 110); + this.sidePlate5.setRotationPoint(0.0F, 0.5F, 3.0F); + this.sidePlate5.addBox(4.0F, -8.5F, -4.0F, 1, 7, 4, 0.0F); + this.setRotateAngle(sidePlate5, 0.0F, 0.22689279913902283F, 0.0F); + + this.chestMain = new ModelRenderer(this, 0, 33); + this.chestMain.setRotationPoint(0.0F, 0.0F, 0.0F); + this.chestMain.addBox(-4.5F, -0.009999999776482582F, -2.5F, 9, 13, 5, 0.0F); + this.facePlate2 = new ModelRenderer(this, 0, 110); + this.facePlate2.mirror = true; + this.facePlate2.setRotationPoint(0.0F, 0.5F, 0.0F); + this.facePlate2.addBox(-3.0F, -3.5F, -5.5F, 5, 3, 1, 0.0F); + this.setRotateAngle(facePlate2, 0.05235987901687623F, 0.34906584024429316F, 0.0F); + this.rightArm = new ModelRenderer(this, 29, 45); + this.rightArm.mirror = true; + this.rightArm.setRotationPoint(0.0F+0.5f, 0.0F, 0.0F); + this.rightArm.addBox(-4.0F, 2.0F, -2.5F, 5, 9, 5, 0.0F); + + this.rightLegPlate11 = new ModelRenderer(this, 0, 91); + this.rightLegPlate11.mirror = true; + this.rightLegPlate11.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightLegPlate11.addBox(-2.0F, 1.5F, -2.5F, 1, 3, 5, 0.0F); + this.setRotateAngle(rightLegPlate11, 0.0F, -0.0F, 0.40142572795869574F); + this.leftLegPlate3 = new ModelRenderer(this, 0, 86); + this.leftLegPlate3.setRotationPoint(0.0F, 5.0F, 0.0F); + this.leftLegPlate3.addBox(-2.5F, 1.5F, -2.3F, 5, 3, 1, 0.0F); + this.setRotateAngle(leftLegPlate3, -0.40142572795869574F, -0.0F, 0.0F); + this.rightArmPlate4 = new ModelRenderer(this, 0, 56); + this.rightArmPlate4.mirror = true; + this.rightArmPlate4.setRotationPoint(-0.0F, 0.0F, 0.0F); + this.rightArmPlate4.addBox(-4.0F, -3.0F, 3.0F, 6, 3, 1, 0.0F); + this.setRotateAngle(rightArmPlate4, 0.19198621771937624F, -0.0F, -0.9599310885968813F); + this.rightLegPlate10 = new ModelRenderer(this, 0, 86); + this.rightLegPlate10.mirror = true; + this.rightLegPlate10.setRotationPoint(0.0F, 5.0F, 0.0F); + this.rightLegPlate10.addBox(-2.5F, 1.5F, 1.3F, 5, 3, 1, 0.0F); + this.setRotateAngle(rightLegPlate10, 0.40142572795869574F, -0.0F, 0.0F); + this.rightArmSymbol = new ModelRenderer(this, 50, 45); + this.rightArmSymbol.mirror = true; + this.rightArmSymbol.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightArmSymbol.addBox(-5.0F+0.5f, 4.0F, -2.0F, 1, 4, 4, 0.0F); + this.leftLegPlate1 = new ModelRenderer(this, 0, 86); + this.leftLegPlate1.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftLegPlate1.addBox(-2.5F, 1.5F, -2.3F, 5, 3, 1, 0.0F); + this.setRotateAngle(leftLegPlate1, -0.40142572795869574F, -0.0F, 0.0F); + this.rightArmPlate1 = new ModelRenderer(this, 0, 56); + this.rightArmPlate1.mirror = true; + this.rightArmPlate1.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightArmPlate1.addBox(-4.0F, -5.0F, -4.5F, 6, 3, 1, 0.0F); + this.setRotateAngle(rightArmPlate1, -0.19198621771937624F, -0.0F, -0.9599310885968813F); + this.leftLegPlate13 = new ModelRenderer(this, 0, 91); + this.leftLegPlate13.setRotationPoint(0.0F, 5.0F, 0.0F); + this.leftLegPlate13.addBox(1.0F, 1.5F, -2.5F, 1, 3, 5, 0.0F); + this.setRotateAngle(leftLegPlate13, 0.0F, -0.0F, -0.40142572795869574F); + this.backPlate = new ModelRenderer(this, 22, 94); + this.backPlate.setRotationPoint(0.0F, 0.0F, 0.0F); + this.backPlate.addBox(-4.0F, -7.699999809265137F, 3.700000047683716F, 8, 8, 1, 0.0F); + this.setRotateAngle(backPlate, 0.06981316953897475F, -0.0F, 0.0F); + this.leftLegPlate8 = new ModelRenderer(this, 0, 86); + this.leftLegPlate8.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftLegPlate8.addBox(-2.5F, 1.5F, 1.3F, 5, 3, 1, 0.0F); + this.setRotateAngle(leftLegPlate8, 0.40142572795869574F, -0.0F, 0.0F); + this.leftLeg = new ModelRenderer(this, 0, 70); + this.leftLeg.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftLeg.addBox(-2.5F, 0.0F, -2.5F, 5, 10, 5, 0.0F); + this.facePlate5 = new ModelRenderer(this, 0, 106); + this.facePlate5.setRotationPoint(0.0F, 0.0F, 0.0F); + this.facePlate5.addBox(-4.0F, -4.5F, -4.5F, 8, 2, 1, 0.0F); + this.belt = new ModelRenderer(this, 0, 61); + this.belt.setRotationPoint(0.0F, 0.0F, 0.0F); + this.belt.addBox(-5.0F, 11.0F, -3.0F, 10, 2, 6, 0.0F); + this.rightLegPlate3 = new ModelRenderer(this, 0, 86); + this.rightLegPlate3.mirror = true; + this.rightLegPlate3.setRotationPoint(0.0F, 5.0F, 0.0F); + this.rightLegPlate3.addBox(-2.5F, 1.5F, -2.3F, 5, 3, 1, 0.0F); + this.setRotateAngle(rightLegPlate3, -0.40142572795869574F, -0.0F, 0.0F); + this.chestPlate3 = new ModelRenderer(this, 0, 52); + this.chestPlate3.setRotationPoint(0.0F, -1.5F, 0.0F); + this.chestPlate3.addBox(0.6000000238418579F, 2.0F, -4.5F, 5, 2, 1, 0.0F); + this.setRotateAngle(chestPlate3, 0.3141592741012573F, -0.0F, 0.17453292012214658F); + this.sidePlate4 = new ModelRenderer(this, 13, 110); + this.sidePlate4.setRotationPoint(0.0F, 0.5F, 0.0F); + this.sidePlate4.addBox(4.0F, -8.5F, -3.0F, 1, 7, 4, 0.0F); + this.setRotateAngle(sidePlate4, 0.0F, 0.22689279913902283F, 0.0F); + this.rightLegPlate6 = new ModelRenderer(this, 13, 90); + this.rightLegPlate6.mirror = true; + this.rightLegPlate6.setRotationPoint(0.0F, 2.5F, 0.0F); + this.rightLegPlate6.addBox(-1.5F, 1.0F, -2.8F, 1, 2, 1, 0.0F); + this.setRotateAngle(rightLegPlate6, -0.40142572795869574F, -0.0F, 0.0F); + + this.rightBoot2 = new ModelRenderer(this, 22, 73); + this.rightBoot2.mirror = true; + this.rightBoot2.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightBoot2.addBox(-3.0F, 8.5F, -3.0F, 5, 1, 6, 0.0F); + this.leftLegPlate7 = new ModelRenderer(this, 13, 90); + this.leftLegPlate7.setRotationPoint(0.0F, 5.0F, 0.0F); + this.leftLegPlate7.addBox(0.5F, 1.0F, -2.8F, 1, 2, 1, 0.0F); + this.setRotateAngle(leftLegPlate7, -0.40142572795869574F, -0.0F, 0.0F); + this.facePlate6 = new ModelRenderer(this, 19, 106); + this.facePlate6.setRotationPoint(0.0F, 0.0F, 0.0F); + this.facePlate6.addBox(-1.0F, -4.5F, -5.0F, 2, 2, 1, 0.0F); + this.facePlate1 = new ModelRenderer(this, 0, 110); + this.facePlate1.setRotationPoint(0.0F, 0.5F, 0.0F); + this.facePlate1.addBox(-2.0F, -3.5F, -5.5F, 5, 3, 1, 0.0F); + this.setRotateAngle(facePlate1, 0.05235987901687623F, -0.34906584024429316F, 0.0F); + this.sidePlate1 = new ModelRenderer(this, 13, 110); + this.sidePlate1.mirror = true; + this.sidePlate1.setRotationPoint(0.0F, 0.5F, 0.0F); + this.sidePlate1.addBox(-5.0F, -8.5F, -3.0F, 1, 7, 4, 0.0F); + this.setRotateAngle(sidePlate1, 0.0F, -0.22689279913902283F, 0.0F); + this.facePlate4 = new ModelRenderer(this, 0, 100); + this.facePlate4.mirror = true; + this.facePlate4.setRotationPoint(0.0F, 0.0F, 0.0F); + this.facePlate4.addBox(-4.0F, -7.5F, -6.5F, 5, 4, 1, 0.0F); + this.setRotateAngle(facePlate4, -0.17453292012214658F, 0.15707963705062866F, 0.0F); + this.rightLegPlate12 = new ModelRenderer(this, 0, 91); + this.rightLegPlate12.mirror = true; + this.rightLegPlate12.setRotationPoint(0.0F, 2.5F, 0.0F); + this.rightLegPlate12.addBox(-2.0F, 1.5F, -2.5F, 1, 3, 5, 0.0F); + this.setRotateAngle(rightLegPlate12, 0.0F, -0.0F, 0.40142572795869574F); + this.leftArmPlate4 = new ModelRenderer(this, 0, 56); + this.leftArmPlate4.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftArmPlate4.addBox(-2.0F, -3.0F, 3.0F, 6, 3, 1, 0.0F); + this.setRotateAngle(leftArmPlate4, 0.19198621771937624F, -0.0F, 0.9599310885968813F); + this.rightLegPlate4 = new ModelRenderer(this, 13, 86); + this.rightLegPlate4.mirror = true; + this.rightLegPlate4.setRotationPoint(0.0F, 2.5F, 0.0F); + this.rightLegPlate4.addBox(-0.5F, 1.5F, -2.8F, 3, 2, 1, 0.0F); + this.setRotateAngle(rightLegPlate4, -0.40142572795869574F, -0.0F, 0.0F); + this.leftLegPlate12 = new ModelRenderer(this, 0, 91); + this.leftLegPlate12.setRotationPoint(0.0F, 2.5F, 0.0F); + this.leftLegPlate12.addBox(1.0F, 1.5F, -2.5F, 1, 3, 5, 0.0F); + this.setRotateAngle(leftLegPlate12, 0.0F, -0.0F, -0.40142572795869574F); + this.chestPlate2 = new ModelRenderer(this, 0, 52); + this.chestPlate2.mirror = true; + this.chestPlate2.setRotationPoint(0.0F, 0.5F, 0.0F); + this.chestPlate2.addBox(-5.699999809265137F, 2.0F, -4.5F, 5, 2, 1, 0.0F); + this.setRotateAngle(chestPlate2, 0.3141592741012573F, -0.0F, -0.22689279913902285F); + this.backPlate_1 = new ModelRenderer(this, 33, 61); + this.backPlate_1.setRotationPoint(0.0F, 0.0F, 0.0F); + this.backPlate_1.addBox(-2.0F, 2.0F, 2.5F, 4, 6, 1, 0.0F); + this.topPlate = new ModelRenderer(this, 22, 84); + this.topPlate.setRotationPoint(0.0F, 0.0F, 0.0F); + this.topPlate.addBox(-4.0F, -8.199999809265137F, -3.5999999046325684F, 8, 1, 8, 0.0F); + this.setRotateAngle(topPlate, 0.05235987901687623F, -0.0F, 0.0F); + this.rightBoot3 = new ModelRenderer(this, 45, 73); + this.rightBoot3.mirror = true; + this.rightBoot3.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightBoot3.addBox(-1.0F, 9.0F, -4.5F, 1, 3, 7, 0.0F); + this.setRotateAngle(rightBoot3, 0.10471975511965977F, -0.0F, 0.2617993877991494F); + this.leftArmSymbol = new ModelRenderer(this, 50, 45); + this.leftArmSymbol.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftArmSymbol.addBox(4.0F-0.5f, 4.0F, -2.0F, 1, 4, 4, 0.0F); + this.sidePlate6 = new ModelRenderer(this, 13, 110); + this.sidePlate6.setRotationPoint(0.0F, 0.5F, 6.0F); + this.sidePlate6.addBox(4.0F, -8.5F, -5.0F, 1, 7, 4, 0.0F); + this.setRotateAngle(sidePlate6, 0.0F, 0.22689279913902283F, 0.0F); + this.chestPlate5 = new ModelRenderer(this, 0, 52); + this.chestPlate5.setRotationPoint(0.0F, -3.5F, 0.0F); + this.chestPlate5.addBox(0.5F, 2.0F, -4.5F, 5, 2, 1, 0.0F); + this.setRotateAngle(chestPlate5, 0.3141592741012573F, -0.0F, 0.12217304855585097F); + this.rightLeg = new ModelRenderer(this, 0, 70); + this.rightLeg.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightLeg.addBox(-2.5F, 0.0F, -2.5F, 5, 10, 5, 0.0F); + this.leftArmPlate2 = new ModelRenderer(this, 0, 56); + this.leftArmPlate2.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftArmPlate2.addBox(-2.0F, -3.0F, -4.0F, 6, 3, 1, 0.0F); + this.setRotateAngle(leftArmPlate2, -0.19198621771937624F, -0.0F, 0.9599310885968813F); + this.leftBoot2 = new ModelRenderer(this, 22, 73); + this.leftBoot2.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftBoot2.addBox(-2.0F, 8.5F, -3.0F, 5, 1, 6, 0.0F); + this.leftArmPlate3 = new ModelRenderer(this, 0, 56); + this.leftArmPlate3.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftArmPlate3.addBox(-2.0F, -5.0F, 3.5F, 6, 3, 1, 0.0F); + this.setRotateAngle(leftArmPlate3, 0.19198621771937624F, -0.0F, 0.9599310885968813F); + + this.rightLegPlate5 = new ModelRenderer(this, 13, 86); + this.rightLegPlate5.mirror = true; + this.rightLegPlate5.setRotationPoint(0.0F, 5.0F, 0.0F); + this.rightLegPlate5.addBox(-0.5F, 1.5F, -2.8F, 3, 2, 1, 0.0F); + this.setRotateAngle(rightLegPlate5, -0.40142572795869574F, -0.0F, 0.0F); + this.sidePlate3 = new ModelRenderer(this, 13, 110); + this.sidePlate3.mirror = true; + this.sidePlate3.setRotationPoint(0.0F, 0.5F, 6.0F); + this.sidePlate3.addBox(-5.0F, -8.5F, -5.0F, 1, 7, 4, 0.0F); + this.setRotateAngle(sidePlate3, 0.0F, -0.22689279913902283F, 0.0F); + this.chestPlate1 = new ModelRenderer(this, 0, 52); + this.chestPlate1.setRotationPoint(0.0F, 0.5F, 0.0F); + this.chestPlate1.addBox(0.699999988079071F, 2.0F, -4.5F, 5, 2, 1, 0.0F); + this.setRotateAngle(chestPlate1, 0.3141592741012573F, -0.0F, 0.22689279913902285F); + this.leftLegPlate4 = new ModelRenderer(this, 13, 86); + this.leftLegPlate4.setRotationPoint(0.0F, 2.5F, 0.0F); + this.leftLegPlate4.addBox(-2.5F, 1.5F, -2.8F, 3, 2, 1, 0.0F); + this.setRotateAngle(leftLegPlate4, -0.40142572795869574F, -0.0F, 0.0F); + this.rightBoot1 = new ModelRenderer(this, 44, 61); + this.rightBoot1.mirror = true; + this.rightBoot1.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightBoot1.addBox(-3.0F, 9.5F, -5.0F, 5, 3, 8, 0.0F); + this.chestPlate4 = new ModelRenderer(this, 0, 52); + this.chestPlate4.mirror = true; + this.chestPlate4.setRotationPoint(0.0F, -1.5F, 0.0F); + this.chestPlate4.addBox(-5.599999904632568F, 2.0F, -4.5F, 5, 2, 1, 0.0F); + this.setRotateAngle(chestPlate4, 0.3141592741012573F, -0.0F, -0.17453292012214658F); + this.rightShoulder = new ModelRenderer(this, 29, 33); + this.rightShoulder.mirror = true; + this.rightShoulder.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightShoulder.addBox(-5.0F, -3.0F, -3.0F, 6, 5, 6, 0.0F); + this.rightLegPlate9 = new ModelRenderer(this, 0, 86); + this.rightLegPlate9.mirror = true; + this.rightLegPlate9.setRotationPoint(0.0F, 2.5F, 0.0F); + this.rightLegPlate9.addBox(-2.5F, 1.5F, 1.3F, 5, 3, 1, 0.0F); + this.setRotateAngle(rightLegPlate9, 0.40142572795869574F, -0.0F, 0.0F); + this.sidePlate2 = new ModelRenderer(this, 13, 110); + this.sidePlate2.mirror = true; + this.sidePlate2.setRotationPoint(0.0F, 0.5F, 3.0F); + this.sidePlate2.addBox(-5.0F, -8.5F, -4.0F, 1, 7, 4, 0.0F); + this.setRotateAngle(sidePlate2, 0.0F, -0.22689279913902283F, 0.0F); + + this.rightArmPlate3 = new ModelRenderer(this, 0, 56); + this.rightArmPlate3.mirror = true; + this.rightArmPlate3.setRotationPoint(-0.0F, 0.0F, 0.0F); + this.rightArmPlate3.addBox(-4.0F, -5.0F, 3.5F, 6, 3, 1, 0.0F); + this.setRotateAngle(rightArmPlate3, 0.19198621771937624F, -0.0F, -0.9599310885968813F); + this.leftLegPlate6 = new ModelRenderer(this, 13, 90); + this.leftLegPlate6.setRotationPoint(0.0F, 2.5F, 0.0F); + this.leftLegPlate6.addBox(0.5F, 1.0F, -2.8F, 1, 2, 1, 0.0F); + this.setRotateAngle(leftLegPlate6, -0.40142572795869574F, -0.0F, 0.0F); + this.rightArmPlate2 = new ModelRenderer(this, 0, 56); + this.rightArmPlate2.mirror = true; + this.rightArmPlate2.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightArmPlate2.addBox(-4.0F, -3.0F, -4.0F, 6, 3, 1, 0.0F); + this.setRotateAngle(rightArmPlate2, -0.19198621771937624F, -0.0F, -0.9599310885968813F); + this.leftLegPlate10 = new ModelRenderer(this, 0, 86); + this.leftLegPlate10.setRotationPoint(0.0F, 5.0F, 0.0F); + this.leftLegPlate10.addBox(-2.5F, 1.5F, 1.3F, 5, 3, 1, 0.0F); + this.setRotateAngle(leftLegPlate10, 0.40142572795869574F, -0.0F, 0.0F); + this.leftLegPlate2 = new ModelRenderer(this, 0, 86); + this.leftLegPlate2.setRotationPoint(0.0F, 2.5F, 0.0F); + this.leftLegPlate2.addBox(-2.5F, 1.5F, -2.3F, 5, 3, 1, 0.0F); + this.setRotateAngle(leftLegPlate2, -0.40142572795869574F, -0.0F, 0.0F); + + this.bipedBody.cubeList.clear(); + this.bipedHead.cubeList.clear(); + this.bipedHeadwear.cubeList.clear(); + this.bipedLeftArm.cubeList.clear(); + this.bipedLeftLeg.cubeList.clear(); + this.bipedRightArm.cubeList.clear(); + this.bipedRightLeg.cubeList.clear(); + + if(addChestPiece) + { + this.bipedLeftArm.addChild(this.leftShoulder); + this.bipedLeftArm.addChild(this.leftArm); + this.bipedLeftArm.addChild(this.leftArmPlate1); + this.bipedBody.addChild(this.chestPlate6); + this.bipedHead.addChild(this.sidePlate5); + this.bipedBody.addChild(this.chestMain); + this.bipedRightArm.addChild(this.rightArm); + this.bipedRightArm.addChild(this.rightArmPlate4); + this.bipedRightArm.addChild(this.rightArmSymbol); + this.bipedRightArm.addChild(this.rightArmPlate1); + this.bipedBody.addChild(this.chestPlate3); + this.bipedLeftArm.addChild(this.leftArmPlate4); + this.bipedBody.addChild(this.chestPlate2); + this.bipedBody.addChild(this.backPlate_1); + this.bipedLeftArm.addChild(this.leftArmSymbol); + this.bipedBody.addChild(this.chestPlate5); + this.bipedLeftArm.addChild(this.leftArmPlate2); + this.bipedLeftArm.addChild(this.leftArmPlate3); + this.bipedBody.addChild(this.chestPlate1); + this.bipedBody.addChild(this.chestPlate4); + this.bipedRightArm.addChild(this.rightShoulder); + this.bipedRightArm.addChild(this.rightArmPlate3); + this.bipedRightArm.addChild(this.rightArmPlate2); + } + + if(addLeggings) + { + this.bipedLeftLeg.addChild(this.leftLegPlate9); + this.bipedLeftLeg.addChild(this.leftLegPlate11); + this.bipedLeftLeg.addChild(this.leftLegPlate5); + this.bipedRightLeg.addChild(this.rightLegPlate13); + this.bipedRightLeg.addChild(this.rightLegPlate2); + this.bipedRightLeg.addChild(this.rightLegPlate8); + this.bipedRightLeg.addChild(this.rightLegPlate1); + this.bipedRightLeg.addChild(this.rightLegPlate7); + this.bipedRightLeg.addChild(this.rightLegPlate11); + this.bipedLeftLeg.addChild(this.leftLegPlate3); + this.bipedRightLeg.addChild(this.rightLegPlate10); + this.bipedLeftLeg.addChild(this.leftLegPlate1); + this.bipedLeftLeg.addChild(this.leftLegPlate13); + this.bipedLeftLeg.addChild(this.leftLegPlate8); + this.bipedLeftLeg.addChild(this.leftLeg); + this.bipedBody.addChild(this.belt); + this.bipedRightLeg.addChild(this.rightLegPlate3); + this.bipedRightLeg.addChild(this.rightLegPlate6); + this.bipedLeftLeg.addChild(this.leftLegPlate7); + this.bipedRightLeg.addChild(this.rightLegPlate12); + this.bipedRightLeg.addChild(this.rightLegPlate4); + this.bipedLeftLeg.addChild(this.leftLegPlate12); + this.bipedRightLeg.addChild(this.rightLeg); + this.bipedRightLeg.addChild(this.rightLegPlate5); + this.bipedLeftLeg.addChild(this.leftLegPlate4); + this.bipedLeftLeg.addChild(this.leftLegPlate2); + this.bipedLeftLeg.addChild(this.leftLegPlate10); + this.bipedLeftLeg.addChild(this.leftLegPlate6); + this.bipedRightLeg.addChild(this.rightLegPlate9); + } + + if(addBoots) + { + this.bipedLeftLeg.addChild(this.leftBoot1); + this.bipedLeftLeg.addChild(this.leftBoot3); + this.bipedRightLeg.addChild(this.rightBoot2); + this.bipedLeftLeg.addChild(this.leftBoot2); + this.bipedRightLeg.addChild(this.rightBoot1); + this.bipedRightLeg.addChild(this.rightBoot3); + } + + if(addHelmet) + { + this.bipedHead.addChild(this.facePlate3); + this.bipedHead.addChild(this.facePlate2); + this.bipedHead.addChild(this.backPlate); + this.bipedHead.addChild(this.facePlate5); + this.bipedHead.addChild(this.sidePlate4); + this.bipedHead.addChild(this.facePlate6); + this.bipedHead.addChild(this.facePlate1); + this.bipedHead.addChild(this.sidePlate1); + this.bipedHead.addChild(this.facePlate4); + this.bipedHead.addChild(this.topPlate); + this.bipedHead.addChild(this.sidePlate6); + this.bipedHead.addChild(this.sidePlate3); + this.bipedHead.addChild(this.sidePlate2); + } + } + + @Override + public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) + { + setRotationAngles(f, f1, f2, f3, f4, f5, entity); + this.bipedLeftArm.render(f5); + this.bipedRightArm.render(f5); + this.bipedLeftLeg.render(f5); + this.bipedHead.render(f5); + this.bipedRightLeg.render(f5); + this.bipedBody.render(f5); + } + + /** + * This is a helper function from Tabula to set the rotation of model parts + */ + public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) { + modelRenderer.rotateAngleX = x; + modelRenderer.rotateAngleY = y; + modelRenderer.rotateAngleZ = z; + } +} \ No newline at end of file diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/renderer/model/ModelOmegaWater.java b/src/main/java/WayofTime/alchemicalWizardry/common/renderer/model/ModelOmegaWater.java new file mode 100644 index 00000000..b46da158 --- /dev/null +++ b/src/main/java/WayofTime/alchemicalWizardry/common/renderer/model/ModelOmegaWater.java @@ -0,0 +1,500 @@ +package WayofTime.alchemicalWizardry.common.renderer.model; + +import net.minecraft.client.model.ModelBiped; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; + +public class ModelOmegaWater extends ModelBiped +{ + //fields + ModelRenderer belt; + + ModelRenderer chestMain; + ModelRenderer chestPlate1; + ModelRenderer chestPlate2; + ModelRenderer chestPlate3; + ModelRenderer chestPlate4; + ModelRenderer leftTank; + ModelRenderer rightTank; + ModelRenderer tankBrace; + ModelRenderer leftArmPlate1; + ModelRenderer leftArmPlate2; + ModelRenderer leftShoulder; + ModelRenderer leftArm; + ModelRenderer rightArm; + ModelRenderer rightArmPlate1; + ModelRenderer rightArmPlate2; + ModelRenderer rightShoulder; + ModelRenderer leftLeg; + ModelRenderer leftLegBrace; + ModelRenderer leftLegPouch; + ModelRenderer rightLeg; + ModelRenderer leftFoot; + ModelRenderer leftFootBrace; + ModelRenderer leftFootPlate; + ModelRenderer rightFoot; + ModelRenderer rightFootBrace; + ModelRenderer rightFootPlate; + ModelRenderer topHeadPlate; + ModelRenderer facePlate1; + ModelRenderer facePlate2; + ModelRenderer facePlate3; + ModelRenderer facePlate4; + ModelRenderer facePlate5; + ModelRenderer leftPlate1; + ModelRenderer leftPlate2; + ModelRenderer leftPlate3; + ModelRenderer backPlate2; + ModelRenderer leftPlate4; + ModelRenderer backPlate1; + ModelRenderer rightPlate1; + ModelRenderer rightPlate2; + ModelRenderer rightPlate3; + ModelRenderer rightPlate4; + + public ModelOmegaWater(float f, boolean addHelmet, boolean addChestPiece, boolean addLeggings, boolean addBoots) + { + super(f, 0.0f, 256, 128); + textureWidth = 256; + textureHeight = 128; + + belt = new ModelRenderer(this, 29, 42); + belt.addBox(-5F, 0F, -3F, 10, 2, 6); + belt.setRotationPoint(0F, 11F, 0F); + belt.setTextureSize(256, 128); + belt.mirror = true; + setRotation(belt, 0F, 0F, 0F); + + chestMain = new ModelRenderer(this, 0, 42); + chestMain.addBox(-4.5F, -0.5F, -2.5F, 9, 13, 5); + chestMain.setRotationPoint(0F, 0F, 0F); + chestMain.setTextureSize(256, 128); + chestMain.mirror = true; + setRotation(chestMain, 0F, 0F, 0F); + + chestPlate1 = new ModelRenderer(this, 0, 60); + chestPlate1.addBox(-4F, 1F, -2.5F, 8, 3, 2); + chestPlate1.setRotationPoint(0F, 0F, 0F); + chestPlate1.setTextureSize(256, 128); + chestPlate1.mirror = true; + setRotation(chestPlate1, -0.3490659F, 0F, 0F); + + chestPlate2 = new ModelRenderer(this, 0, 66); + chestPlate2.mirror = true; + chestPlate2.addBox(-4.5F, 2.5F, -3.5F, 3, 3, 1); + chestPlate2.setRotationPoint(0F, 0F, 0F); + chestPlate2.setTextureSize(256, 128); + chestPlate2.mirror = true; + setRotation(chestPlate2, 0F, 0F, 0F); + chestPlate2.mirror = false; + + chestPlate3 = new ModelRenderer(this, 0, 66); + chestPlate3.addBox(1.5F, 2.5F, -3.5F, 3, 3, 1); + chestPlate3.setRotationPoint(0F, 0F, 0F); + chestPlate3.setTextureSize(256, 128); + chestPlate3.mirror = true; + setRotation(chestPlate3, 0F, 0F, 0F); + + chestPlate4 = new ModelRenderer(this, 0, 71); + chestPlate4.addBox(-1.5F, 4.5F, -3.5F, 3, 5, 1); + chestPlate4.setRotationPoint(0F, 0F, 0F); + chestPlate4.setTextureSize(256, 128); + chestPlate4.mirror = true; + setRotation(chestPlate4, 0F, 0F, 0F); + + leftTank = new ModelRenderer(this, 9, 66); + leftTank.addBox(1F, 1F, 2.5F, 2, 8, 1); + leftTank.setRotationPoint(0F, 0F, 0F); + leftTank.setTextureSize(256, 128); + leftTank.mirror = true; + setRotation(leftTank, 0F, 0F, 0F); + + rightTank = new ModelRenderer(this, 9, 66); + rightTank.addBox(-3F, 1F, 2.5F, 2, 8, 1); + rightTank.setRotationPoint(0F, 0F, 0F); + rightTank.setTextureSize(256, 128); + rightTank.mirror = true; + setRotation(rightTank, 0F, 0F, 0F); + + tankBrace = new ModelRenderer(this, 0, 78); + tankBrace.addBox(-4F, 1.5F, 2F, 8, 2, 1); + tankBrace.setRotationPoint(0F, 0F, 0F); + tankBrace.setTextureSize(256, 128); + tankBrace.mirror = true; + setRotation(tankBrace, 0F, 0F, 0F); + + leftArmPlate1 = new ModelRenderer(this, 0, 82); + leftArmPlate1.addBox(-0.4F-4F, -2F-3F, -4F-1, 6, 3, 1); + leftArmPlate1.setRotationPoint(5F, 2F, 0F); + leftArmPlate1.setTextureSize(256, 128); + leftArmPlate1.mirror = true; + setRotation(leftArmPlate1, -0.3490659F, 0F, -0.2617994F); + + leftArmPlate2 = new ModelRenderer(this, 0, 82); + leftArmPlate2.addBox(-0.4F-4F, -2F-3F, -4F-1, 6, 3, 1); + leftArmPlate2.setRotationPoint(5F, 4F, 0F); + leftArmPlate2.setTextureSize(256, 128); + leftArmPlate2.mirror = true; + setRotation(leftArmPlate2, -0.3490659F, 0F, -0.2617994F); + + leftShoulder = new ModelRenderer(this, 21, 82); + leftShoulder.addBox(-1F-5F, -3F-2F, -3F, 6, 5, 6); + leftShoulder.setRotationPoint(5F, 2F, 0F); + leftShoulder.setTextureSize(256, 128); + leftShoulder.mirror = true; + setRotation(leftShoulder, 0F, 0F, 0F); + + leftArm = new ModelRenderer(this, 0, 87); + leftArm.addBox(-1F-5.5F, 1.5F-2F, -2.5F, 5, 9, 5); + leftArm.setRotationPoint(5F, 2F, 0F); + leftArm.setTextureSize(256, 128); + leftArm.mirror = true; + setRotation(leftArm, 0F, 0F, 0F); + + rightArm = new ModelRenderer(this, 0, 87); + rightArm.mirror = true; + rightArm.addBox(-4F+5.5F, 1.5F-2F, -2.5F, 5, 9, 5); + rightArm.setRotationPoint(-5F, 2F, 0F); + rightArm.setTextureSize(256, 128); + rightArm.mirror = true; + setRotation(rightArm, 0F, 0F, 0F); + rightArm.mirror = false; + + rightArmPlate1 = new ModelRenderer(this, 0, 82); + rightArmPlate1.mirror = true; + rightArmPlate1.addBox(-4.6F+4F, -2.2F-3F, -4F-1, 6, 3, 1); + rightArmPlate1.setRotationPoint(-6F, 2F, 0F); + rightArmPlate1.setTextureSize(256, 128); + rightArmPlate1.mirror = true; + setRotation(rightArmPlate1, -0.3490659F, 0F, 0.2617994F); + rightArmPlate1.mirror = false; + + rightArmPlate2 = new ModelRenderer(this, 0, 82); + rightArmPlate2.mirror = true; + rightArmPlate2.addBox(-4.6F+4F, -2.2F-3F, -4F-1, 6, 3, 1); + rightArmPlate2.setRotationPoint(-6F, 4F, 0F); + rightArmPlate2.setTextureSize(256, 128); + rightArmPlate2.mirror = true; + setRotation(rightArmPlate2, -0.3490659F, 0F, 0.2617994F); + rightArmPlate2.mirror = false; + + rightShoulder = new ModelRenderer(this, 21, 82); + rightShoulder.mirror = true; + rightShoulder.addBox(-4F+5F, -3F-2F, -3F, 6, 5, 6); + rightShoulder.setRotationPoint(-6F, 2F, 0F); + rightShoulder.setTextureSize(256, 128); + rightShoulder.mirror = true; + setRotation(rightShoulder, 0F, 0F, 0F); + rightShoulder.mirror = false; + + leftLeg = new ModelRenderer(this, 29, 51); + leftLeg.addBox(-4.5F, -12F, -2.5F, 5, 10, 5); + leftLeg.setRotationPoint(2F, 12F, 0F); + leftLeg.setTextureSize(256, 128); + leftLeg.mirror = true; + setRotation(leftLeg, 0F, 0F, 0F); + + leftLegBrace = new ModelRenderer(this, 38, 67); + leftLegBrace.addBox(-2F, -7F, -3F, 3, 1, 6); + leftLegBrace.setRotationPoint(2F, 12F, 0F); + leftLegBrace.setTextureSize(256, 128); + leftLegBrace.mirror = true; + setRotation(leftLegBrace, 0F, 0F, 0F); + + leftLegPouch = new ModelRenderer(this, 29, 67); + leftLegPouch.addBox(0.5F, 3F-12F, -1.5F, 1, 4, 3); + leftLegPouch.setRotationPoint(2F, 12F, 0F); + leftLegPouch.setTextureSize(256, 128); + leftLegPouch.mirror = true; + setRotation(leftLegPouch, 0F, 0F, 0F); + + rightLeg = new ModelRenderer(this, 29, 51); + rightLeg.mirror = true; + rightLeg.addBox(-0.5F, 0F-12F, -2.5F, 5, 10, 5); + rightLeg.setRotationPoint(-2F, 12F, 0F); + rightLeg.setTextureSize(256, 128); + rightLeg.mirror = true; + setRotation(rightLeg, 0F, 0F, 0F); + rightLeg.mirror = false; + + leftFoot = new ModelRenderer(this, 21, 103); + leftFoot.addBox(-4F, 9.5F-12F, -5F, 5, 3, 8); + leftFoot.setRotationPoint(2F, 12F, 0F); + leftFoot.setTextureSize(256, 128); + leftFoot.mirror = true; + setRotation(leftFoot, 0F, 0F, 0F); + + leftFootBrace = new ModelRenderer(this, 21, 94); + leftFootBrace.addBox(-4F, 7.5F-12F, -3F, 5, 2, 6); + leftFootBrace.setRotationPoint(2F, 12F, 0F); + leftFootBrace.setTextureSize(256, 128); + leftFootBrace.mirror = true; + setRotation(leftFootBrace, 0F, 0F, 0F); + + leftFootPlate = new ModelRenderer(this, 21, 115); + leftFootPlate.addBox(-3.5F, 7F-8F, 4F-9F, 4, 3, 1); + leftFootPlate.setRotationPoint(2F, 12F, 0F); + leftFootPlate.setTextureSize(256, 128); + leftFootPlate.mirror = true; + setRotation(leftFootPlate, -0.8726646F, 0F, 0F); + + rightFoot = new ModelRenderer(this, 21, 103); + rightFoot.mirror = true; + rightFoot.addBox(-1F, 9.5F-12F, -5F, 5, 3, 8); + rightFoot.setRotationPoint(-2F, 12F, 0F); + rightFoot.setTextureSize(256, 128); + rightFoot.mirror = true; + setRotation(rightFoot, 0F, 0F, 0F); + rightFoot.mirror = false; + + rightFootBrace = new ModelRenderer(this, 21, 94); + rightFootBrace.mirror = true; + rightFootBrace.addBox(-1F, 7.5F-12F, -3F, 5, 2, 6); + rightFootBrace.setRotationPoint(-2F, 12F, 0F); + rightFootBrace.setTextureSize(256, 128); + rightFootBrace.mirror = true; + setRotation(rightFootBrace, 0F, 0F, 0F); + rightFootBrace.mirror = false; + + rightFootPlate = new ModelRenderer(this, 21, 115); + rightFootPlate.mirror = true; + rightFootPlate.addBox(-0.5F, 7F-8F, 4F-9F, 4, 3, 1); + rightFootPlate.setRotationPoint(-2F, 12F, 0F); + rightFootPlate.setTextureSize(256, 128); + rightFootPlate.mirror = true; + setRotation(rightFootPlate, -0.8726646F, 0F, 0F); + rightFootPlate.mirror = false; + + topHeadPlate = new ModelRenderer(this, 58, 19); + topHeadPlate.addBox(-4F, -8.5F, -4.5F, 8, 1, 9); + topHeadPlate.setRotationPoint(0F, 0F, 0F); + topHeadPlate.setTextureSize(256, 128); + topHeadPlate.mirror = true; + setRotation(topHeadPlate, 0F, 0F, 0F); + + facePlate1 = new ModelRenderer(this, 58, 0); + facePlate1.addBox(-4F, -8.5F, -5F, 8, 4, 1); + facePlate1.setRotationPoint(0F, 0F, 0F); + facePlate1.setTextureSize(256, 128); + facePlate1.mirror = true; + setRotation(facePlate1, 0F, 0F, 0F); + + facePlate2 = new ModelRenderer(this, 58, 6); + facePlate2.addBox(-1F, -4.5F, -5F, 2, 2, 1); + facePlate2.setRotationPoint(0F, 0F, 0F); + facePlate2.setTextureSize(256, 128); + facePlate2.mirror = true; + setRotation(facePlate2, 0F, 0F, 0F); + + facePlate3 = new ModelRenderer(this, 58, 15); + facePlate3.addBox(-4F, -4.5F, -4.5F, 8, 2, 1); + facePlate3.setRotationPoint(0F, 0F, 0F); + facePlate3.setTextureSize(256, 128); + facePlate3.mirror = true; + setRotation(facePlate3, 0F, 0F, 0F); + + facePlate4 = new ModelRenderer(this, 58, 10); + facePlate4.mirror = true; + facePlate4.addBox(-2F, -3.5F, -5.5F, 4, 3, 1); + facePlate4.setRotationPoint(0F, 0.5F, 0F); + facePlate4.setTextureSize(256, 128); + facePlate4.mirror = true; + setRotation(facePlate4, 0.0523599F, 0.3490659F, 0F); + facePlate4.mirror = false; + + facePlate5 = new ModelRenderer(this, 58, 10); + facePlate5.addBox(-2F, -3.5F, -5.5F, 4, 3, 1); + facePlate5.setRotationPoint(0F, 0.5F, 0F); + facePlate5.setTextureSize(256, 128); + facePlate5.mirror = true; + setRotation(facePlate5, 0.0523599F, -0.3490659F, 0F); + + leftPlate1 = new ModelRenderer(this, 77, 0); + leftPlate1.addBox(4.5F, -5.2F, -4.6F, 1, 3, 9); + leftPlate1.setRotationPoint(0F, -2F, 0F); + leftPlate1.setTextureSize(256, 128); + leftPlate1.mirror = true; + setRotation(leftPlate1, 0F, 0F, -0.1919862F); + + leftPlate2 = new ModelRenderer(this, 77, 0); + leftPlate2.addBox(4.5F, -5.2F, -4.6F, 1, 3, 9); + leftPlate2.setRotationPoint(0F, 0F, 0F); + leftPlate2.setTextureSize(256, 128); + leftPlate2.mirror = true; + setRotation(leftPlate2, 0F, 0F, -0.1919862F); + + leftPlate3 = new ModelRenderer(this, 77, 0); + leftPlate3.addBox(4.5F, -5.2F, -4.6F, 1, 3, 9); + leftPlate3.setRotationPoint(0F, 2F, 0F); + leftPlate3.setTextureSize(256, 128); + leftPlate3.mirror = true; + setRotation(leftPlate3, 0F, 0F, -0.1919862F); + + backPlate2 = new ModelRenderer(this, 98, 0); + backPlate2.addBox(-4F, -5.5F, 4.5F, 8, 4, 1); + backPlate2.setRotationPoint(0F, 2F, 0F); + backPlate2.setTextureSize(256, 128); + backPlate2.mirror = true; + setRotation(backPlate2, 0.122173F, 0F, 0F); + + leftPlate4 = new ModelRenderer(this, 98, 6); + leftPlate4.addBox(3.5F, -5.8F, -4.6F, 1, 2, 9); + leftPlate4.setRotationPoint(0F, 4F, 0F); + leftPlate4.setTextureSize(256, 128); + leftPlate4.mirror = true; + setRotation(leftPlate4, 0F, 0F, 0F); + + backPlate1 = new ModelRenderer(this, 98, 0); + backPlate1.addBox(-4F, -5.5F, 4.5F, 8, 4, 1); + backPlate1.setRotationPoint(0F, -2F, 0F); + backPlate1.setTextureSize(256, 128); + backPlate1.mirror = true; + setRotation(backPlate1, 0.122173F, 0F, 0F); + + rightPlate1 = new ModelRenderer(this, 77, 0); + rightPlate1.mirror = true; + rightPlate1.addBox(-5.5F, -5.2F, -4.6F, 1, 3, 9); + rightPlate1.setRotationPoint(0F, -2F, 0F); + rightPlate1.setTextureSize(256, 128); + rightPlate1.mirror = true; + setRotation(rightPlate1, 0F, 0F, 0.1919862F); + rightPlate1.mirror = false; + + rightPlate2 = new ModelRenderer(this, 77, 0); + rightPlate2.mirror = true; + rightPlate2.addBox(-5.5F, -5.2F, -4.6F, 1, 3, 9); + rightPlate2.setRotationPoint(0F, 0F, 0F); + rightPlate2.setTextureSize(256, 128); + rightPlate2.mirror = true; + setRotation(rightPlate2, 0F, 0F, 0.1919862F); + rightPlate2.mirror = false; + + rightPlate3 = new ModelRenderer(this, 77, 0); + rightPlate3.mirror = true; + rightPlate3.addBox(-5.5F, -5.2F, -4.6F, 1, 3, 9); + rightPlate3.setRotationPoint(0F, 2F, 0F); + rightPlate3.setTextureSize(256, 128); + rightPlate3.mirror = true; + setRotation(rightPlate3, 0F, 0F, 0.1919862F); + rightPlate3.mirror = false; + + rightPlate4 = new ModelRenderer(this, 98, 6); + rightPlate4.mirror = true; + rightPlate4.addBox(-4.5F, -5.8F, -4.6F, 1, 2, 9); + rightPlate4.setRotationPoint(0F, 4F, 0F); + rightPlate4.setTextureSize(256, 128); + rightPlate4.mirror = true; + setRotation(rightPlate4, 0F, 0F, 0F); + rightPlate4.mirror = false; + + this.bipedHead.cubeList.clear(); + this.bipedHeadwear.cubeList.clear(); + if (addHelmet) + { + this.bipedHead.addChild(this.facePlate1); + this.bipedHead.addChild(this.facePlate2); + this.bipedHead.addChild(this.facePlate3); + this.bipedHead.addChild(this.facePlate4); + this.bipedHead.addChild(this.facePlate5); + this.bipedHead.addChild(this.topHeadPlate); + this.bipedHead.addChild(this.leftPlate1); + this.bipedHead.addChild(this.rightPlate1); + this.bipedHead.addChild(this.leftPlate2); + this.bipedHead.addChild(this.rightPlate2); + this.bipedHead.addChild(this.leftPlate3); + this.bipedHead.addChild(this.rightPlate3); + this.bipedHead.addChild(this.leftPlate4); + this.bipedHead.addChild(this.rightPlate4); + this.bipedHead.addChild(this.backPlate1); + this.bipedHead.addChild(this.backPlate2); + + } + + this.bipedBody.cubeList.clear(); + if (addChestPiece) + { + this.bipedBody.addChild(this.chestMain); + this.bipedBody.addChild(this.chestPlate1); + this.bipedBody.addChild(this.chestPlate2); + this.bipedBody.addChild(this.chestPlate3); + this.bipedBody.addChild(this.chestPlate4); + this.bipedBody.addChild(this.leftTank); + this.bipedBody.addChild(this.rightTank); + this.bipedBody.addChild(this.tankBrace); + } + if (addLeggings) + { + this.bipedBody.addChild(this.belt); + } + + this.bipedRightArm.cubeList.clear(); + if (addChestPiece) + { + this.bipedRightArm.addChild(this.rightArm); + this.bipedRightArm.addChild(this.rightShoulder); + this.bipedRightArm.addChild(this.rightArmPlate1); + this.bipedRightArm.addChild(this.rightArmPlate2); + + } + + this.bipedLeftArm.cubeList.clear(); + if (addChestPiece) + { + this.bipedLeftArm.addChild(this.leftArm); + this.bipedLeftArm.addChild(this.leftShoulder); + this.bipedLeftArm.addChild(this.leftArmPlate1); + this.bipedLeftArm.addChild(this.leftArmPlate2); + } + + this.bipedLeftLeg.cubeList.clear(); + if (addBoots) + { + this.bipedLeftLeg.addChild(this.leftFoot); + this.bipedLeftLeg.addChild(this.leftFootBrace); + this.bipedLeftLeg.addChild(this.leftFootPlate); + } + if (addLeggings) + { + this.bipedLeftLeg.addChild(this.leftLeg); + this.bipedLeftLeg.addChild(this.leftLegBrace); + this.bipedLeftLeg.addChild(this.leftLegPouch); + } + + this.bipedRightLeg.cubeList.clear(); + if (addBoots) + { + this.bipedRightLeg.addChild(this.rightFoot); + this.bipedRightLeg.addChild(this.rightFootBrace); + this.bipedRightLeg.addChild(this.rightFootPlate); + } + if (addLeggings) + { + this.bipedRightLeg.addChild(this.rightLeg); + } + } + + public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) + { + setRotationAngles(f, f1, f2, f3, f4, f5, entity); + + this.bipedHead.render(f5); + this.bipedBody.render(f5); + this.bipedLeftArm.render(f5); + this.bipedRightArm.render(f5); + this.bipedLeftLeg.render(f5); + this.bipedRightLeg.render(f5); + } + + private void setRotation(ModelRenderer model, float x, float y, float z) + { + model.rotateAngleX = x; + model.rotateAngleY = y; + model.rotateAngleZ = z; + } + + public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) + { + super.setRotationAngles(f, f1, f2, f3, f4, f5, entity); + } + +} diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/renderer/model/ModelOmegaWind.java b/src/main/java/WayofTime/alchemicalWizardry/common/renderer/model/ModelOmegaWind.java new file mode 100644 index 00000000..6dfb7dc8 --- /dev/null +++ b/src/main/java/WayofTime/alchemicalWizardry/common/renderer/model/ModelOmegaWind.java @@ -0,0 +1,405 @@ +package WayofTime.alchemicalWizardry.common.renderer.model; + +import net.minecraft.client.model.ModelBiped; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; + +/** + * OmegaWind.tcn - TechneToTabulaImporter + * Created using Tabula 4.1.0 + */ +public class ModelOmegaWind extends ModelBiped +{ + public ModelRenderer facePlate1; + public ModelRenderer facePlate2; + public ModelRenderer facePlate3; + public ModelRenderer facePlate4; + public ModelRenderer forePlate; + public ModelRenderer topWingPlate; + public ModelRenderer leftWingPlate1; + public ModelRenderer leftWingPlate3; + public ModelRenderer rightWingPlate1; + public ModelRenderer rightWingPlate2; + public ModelRenderer rightWingPlate3; + public ModelRenderer topPlate; + public ModelRenderer backPlate; + public ModelRenderer leftWingPlate2; + public ModelRenderer chestMain; + public ModelRenderer chestPlate1; + public ModelRenderer chestPlate3; + public ModelRenderer chestPlate4; + public ModelRenderer chestPlate5; + public ModelRenderer chestPlate6; + public ModelRenderer chestOrnament; + public ModelRenderer belt; + public ModelRenderer chestPlate2; + public ModelRenderer rightArm; + public ModelRenderer rightShoulder; + public ModelRenderer rightArmPlate1; + public ModelRenderer rightArmPlate2; + public ModelRenderer rightArmPlate3; + public ModelRenderer rightFloater1; + public ModelRenderer rightFloater2; + public ModelRenderer rightFloater3; + public ModelRenderer rightFloater4; + public ModelRenderer leftArm; + public ModelRenderer leftShoulder; + public ModelRenderer leftArmPlate1; + public ModelRenderer leftArmPlate2; + public ModelRenderer leftArmPlate3; + public ModelRenderer leftFloater1; + public ModelRenderer leftFloater2; + public ModelRenderer leftFloater3; + public ModelRenderer leftFloater4; + public ModelRenderer rightLeg; + public ModelRenderer rightLegFloater1; + public ModelRenderer rightLegFloater2; + public ModelRenderer rightLegFloater3; + public ModelRenderer rightFoot2; + public ModelRenderer rightFootPlate; + public ModelRenderer rightFoot1; + public ModelRenderer leftLeg; + public ModelRenderer leftLegFloater1; + public ModelRenderer leftLegFloater2; + public ModelRenderer leftLegFloater3; + public ModelRenderer leftFoot1; + public ModelRenderer leftFoot2; + public ModelRenderer leftFootPlate; + + public ModelOmegaWind(float f, boolean addHelmet, boolean addChestPiece, boolean addLeggings, boolean addBoots) + { + super(f, 0.0f, 128, 128); + this.rightWingPlate2 = new ModelRenderer(this, 33, 82); + this.rightWingPlate2.mirror = true; + this.rightWingPlate2.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightWingPlate2.addBox(-5.0F, -4.900000095367432F, -2.5F, 1, 2, 3, 0.0F); + this.setRotateAngle(rightWingPlate2, 0.13962633907794952F, -0.0F, 0.0F); + this.leftFloater1 = new ModelRenderer(this, 0, 78); + this.leftFloater1.setRotationPoint(1.0F, 7.0F, 0.0F); + this.leftFloater1.addBox(3.5F, -2.0F, -1.5F, 1, 3, 3, 0.0F); + this.setRotateAngle(leftFloater1, -0.148352986419518F, -0.5040510879759623F, 0.30002209841782523F); + + this.leftWingPlate3 = new ModelRenderer(this, 38, 92); + this.leftWingPlate3.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftWingPlate3.addBox(3.5F, -5.0F, -3.9000000953674316F, 1, 5, 9, 0.0F); + this.setRotateAngle(leftWingPlate3, 0.0F, 0.12217304855585097F, 0.0F); + this.leftFoot1 = new ModelRenderer(this, 0, 110); + this.leftFoot1.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftFoot1.addBox(-2.0F, 9.5F, -5.0F, 5, 3, 8, 0.0F); + this.rightArmPlate1 = new ModelRenderer(this, 21, 51); + this.rightArmPlate1.mirror = true; + this.rightArmPlate1.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightArmPlate1.addBox(-5.5F, -2.0F, -4.0F, 1, 4, 8, 0.0F); + this.setRotateAngle(rightArmPlate1, 0.0F, -0.0F, 0.5585053606381855F); + this.topPlate = new ModelRenderer(this, 59, 92); + this.topPlate.setRotationPoint(0.0F, 0.0F, 0.0F); + this.topPlate.addBox(-4.5F, -8.100000381469727F, -4.0F, 9, 1, 8, 0.0F); + + this.leftShoulder = new ModelRenderer(this, 0, 66); + this.leftShoulder.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftShoulder.addBox(-1.0F, -3.0F, -3.0F, 5, 5, 6, 0.0F); + this.leftArmPlate3 = new ModelRenderer(this, 21, 51); + this.leftArmPlate3.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftArmPlate3.addBox(2.5F, 1.0F, -4.0F, 1, 4, 8, 0.0F); + this.setRotateAngle(leftArmPlate3, 0.0F, -0.0F, -0.5585053606381855F); + this.leftFloater4 = new ModelRenderer(this, 0, 78); + this.leftFloater4.setRotationPoint(1.0F, 7.0F, 0.0F); + this.leftFloater4.addBox(3.5F, -2.0F, -1.5F, 1, 3, 3, 0.0F); + this.setRotateAngle(leftFloater4, -1.5707963267948966F, -1.3089969389957472F, 1.5707963267948966F); + this.leftWingPlate1 = new ModelRenderer(this, 42, 77); + this.leftWingPlate1.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftWingPlate1.addBox(4.0F, -7.900000095367432F, -4.5F, 1, 3, 11, 0.0F); + this.setRotateAngle(leftWingPlate1, 0.13962633907794952F, -0.0F, 0.0F); + this.rightShoulder = new ModelRenderer(this, 0, 66); + this.rightShoulder.mirror = true; + this.rightShoulder.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightShoulder.addBox(-4.0F, -3.0F, -3.0F, 5, 5, 6, 0.0F); + this.leftLegFloater3 = new ModelRenderer(this, 0, 78); + this.leftLegFloater3.mirror = true; + this.leftLegFloater3.setRotationPoint(0.0F, 5.0F, 0.0F); + this.leftLegFloater3.addBox(4.0F, -1.5F, -1.5F, 1, 3, 3, 0.0F); + this.setRotateAngle(leftLegFloater3, -0.7681194038027044F, -1.2027063875492923F, 0.8026769229921922F); + this.facePlate4 = new ModelRenderer(this, 42, 63); + this.facePlate4.mirror = true; + this.facePlate4.setRotationPoint(0.0F, 0.5F, 0.0F); + this.facePlate4.addBox(-2.0F, -3.5F, -5.5F, 4, 3, 1, 0.0F); + this.setRotateAngle(facePlate4, 0.05235987901687623F, 0.34906584024429316F, 0.0F); + this.leftLegFloater1 = new ModelRenderer(this, 0, 78); + this.leftLegFloater1.mirror = true; + this.leftLegFloater1.setRotationPoint(0.0F, 5.0F, 0.0F); + this.leftLegFloater1.addBox(4.0F, -1.5F, -1.5F, 1, 3, 3, 0.0F); + this.setRotateAngle(leftLegFloater1, 0.0F, -0.0F, 0.2617993877991494F); + this.rightLegFloater2 = new ModelRenderer(this, 0, 78); + this.rightLegFloater2.setRotationPoint(0.0F, 5.0F, 0.0F); + this.rightLegFloater2.addBox(-5.0F, -1.5F, -1.5F, 1, 3, 3, 0.0F); + this.setRotateAngle(rightLegFloater2, -0.7681194038027044F, 1.2027063875492923F, -0.8026769229921922F); + this.leftFloater3 = new ModelRenderer(this, 0, 78); + this.leftFloater3.setRotationPoint(1.0F, 7.0F, 0.0F); + this.leftFloater3.addBox(3.5F, -2.0F, -1.5F, 1, 3, 3, 0.0F); + this.setRotateAngle(leftFloater3, 1.5707963267948966F, 1.3089969389957472F, 1.5707963267948966F); + this.leftWingPlate2 = new ModelRenderer(this, 33, 82); + this.leftWingPlate2.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftWingPlate2.addBox(4.0F, -4.900000095367432F, -2.5F, 1, 2, 3, 0.0F); + this.setRotateAngle(leftWingPlate2, 0.13962633907794952F, -0.0F, 0.0F); + this.facePlate3 = new ModelRenderer(this, 42, 63); + this.facePlate3.setRotationPoint(0.0F, 0.5F, 0.0F); + this.facePlate3.addBox(-2.0F, -3.5F, -5.5F, 4, 3, 1, 0.0F); + this.setRotateAngle(facePlate3, 0.05235987901687623F, -0.34906584024429316F, 0.0F); + this.rightLegFloater3 = new ModelRenderer(this, 0, 78); + this.rightLegFloater3.setRotationPoint(0.0F, 5.0F, 0.0F); + this.rightLegFloater3.addBox(-5.0F, -1.5F, -1.5F, 1, 3, 3, 0.0F); + this.setRotateAngle(rightLegFloater3, 0.7681194038027044F, -1.2027063875492923F, -0.8026769229921922F); + this.rightArmPlate3 = new ModelRenderer(this, 21, 51); + this.rightArmPlate3.mirror = true; + this.rightArmPlate3.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightArmPlate3.addBox(-3.5F, 1.0F, -4.0F, 1, 4, 8, 0.0F); + this.setRotateAngle(rightArmPlate3, 0.0F, -0.0F, 0.5585053606381855F); + this.chestPlate6 = new ModelRenderer(this, 29, 33); + this.chestPlate6.mirror = true; + this.chestPlate6.setRotationPoint(0.0F, 3.0F, -3.0F); + this.chestPlate6.addBox(-6.0F, -1.0F, 0.0F, 5, 2, 1, 0.0F); + this.setRotateAngle(chestPlate6, 0.17457550921422682F, -0.060447682496676876F, -0.5246555175572628F); + this.belt = new ModelRenderer(this, 0, 85); + this.belt.setRotationPoint(0.0F, 0.0F, 0.0F); + this.belt.addBox(-5.0F, 11.0F, -3.0F, 10, 2, 6, 0.0F); + this.rightArmPlate2 = new ModelRenderer(this, 21, 51); + this.rightArmPlate2.mirror = true; + this.rightArmPlate2.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightArmPlate2.addBox(-4.5F, -0.5F, -4.0F, 1, 4, 8, 0.0F); + this.setRotateAngle(rightArmPlate2, 0.0F, -0.0F, 0.5585053606381855F); + this.rightFoot2 = new ModelRenderer(this, 27, 110); + this.rightFoot2.mirror = true; + this.rightFoot2.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightFoot2.addBox(-3.0F, 7.5F, -3.0F, 5, 2, 6, 0.0F); + this.rightLegFloater1 = new ModelRenderer(this, 0, 78); + this.rightLegFloater1.setRotationPoint(0.0F, 5.0F, 0.0F); + this.rightLegFloater1.addBox(-5.0F, -1.5F, -1.5F, 1, 3, 3, 0.0F); + this.setRotateAngle(rightLegFloater1, 0.0F, -0.0F, -0.2617993877991494F); + this.leftFloater2 = new ModelRenderer(this, 0, 78); + this.leftFloater2.setRotationPoint(1.0F, 7.0F, 0.0F); + this.leftFloater2.addBox(3.5F, -2.0F, -1.5F, 1, 3, 3, 0.0F); + this.setRotateAngle(leftFloater2, 0.148352986419518F, 0.5040510879759623F, 0.30002209841782523F); + this.rightFloater2 = new ModelRenderer(this, 0, 78); + this.rightFloater2.mirror = true; + this.rightFloater2.setRotationPoint(-1.0F, 7.0F, 0.0F); + this.rightFloater2.addBox(-4.5F, -2.0F, -1.5F, 1, 3, 3, 0.0F); + this.setRotateAngle(rightFloater2, -1.5707963267948966F, 1.3089969389957472F, -1.5707963267948966F); + this.rightWingPlate1 = new ModelRenderer(this, 42, 77); + this.rightWingPlate1.mirror = true; + this.rightWingPlate1.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightWingPlate1.addBox(-5.0F, -7.900000095367432F, -4.5F, 1, 3, 11, 0.0F); + this.setRotateAngle(rightWingPlate1, 0.13962633907794952F, -0.0F, 0.0F); + + this.leftArm = new ModelRenderer(this, 0, 51); + this.leftArm.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftArm.addBox(-1.5F, 2.0F, -2.5F, 5, 9, 5, 0.0F); + this.rightLeg = new ModelRenderer(this, 0, 94); + this.rightLeg.mirror = true; + this.rightLeg.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightLeg.addBox(-2.5F, 0.0F, -2.5F, 5, 10, 5, 0.0F); + this.leftLegFloater2 = new ModelRenderer(this, 0, 78); + this.leftLegFloater2.mirror = true; + this.leftLegFloater2.setRotationPoint(0.0F, 5.0F, 0.0F); + this.leftLegFloater2.addBox(4.0F, -1.5F, -1.5F, 1, 3, 3, 0.0F); + this.setRotateAngle(leftLegFloater2, 0.7681194038027044F, 1.2027063875492923F, 0.8026769229921922F); + this.chestMain = new ModelRenderer(this, 0, 33); + this.chestMain.setRotationPoint(0.0F, 0.0F, 0.0F); + this.chestMain.addBox(-4.5F, -0.5F, -2.5F, 9, 12, 5, 0.0F); + this.chestPlate4 = new ModelRenderer(this, 29, 33); + this.chestPlate4.mirror = true; + this.chestPlate4.setRotationPoint(0.0F, 3.0F, -3.0F); + this.chestPlate4.addBox(-6.0F, -1.0F, 0.0F, 5, 2, 1, 0.0F); + this.setRotateAngle(chestPlate4, 0.10467716894167224F, -0.060447682496676876F, 0.5246555175572628F); + this.leftLeg = new ModelRenderer(this, 0, 94); + this.leftLeg.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftLeg.addBox(-2.5F, 0.0F, -2.5F, 5, 10, 5, 0.0F); + + this.rightFloater3 = new ModelRenderer(this, 0, 78); + this.rightFloater3.mirror = true; + this.rightFloater3.setRotationPoint(-1.0F, 7.0F, 0.0F); + this.rightFloater3.addBox(-4.5F, -2.0F, -1.5F, 1, 3, 3, 0.0F); + this.setRotateAngle(rightFloater3, 0.148352986419518F, -0.5040510879759623F, -0.30002209841782523F); + this.chestPlate2 = new ModelRenderer(this, 29, 33); + this.chestPlate2.setRotationPoint(0.0F, 3.0F, -3.0F); + this.chestPlate2.addBox(1.0F, -1.0F, 0.0F, 5, 2, 1, 0.0F); + this.setRotateAngle(chestPlate2, 0.13962633907794952F, 0.06981316953897476F, 0.0F); + this.rightFootPlate = new ModelRenderer(this, 21, 94); + this.rightFootPlate.mirror = true; + this.rightFootPlate.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightFootPlate.addBox(-1.5F, 9.5F, -3.5F, 1, 3, 7, 0.0F); + this.setRotateAngle(rightFootPlate, 0.0F, -0.0F, 0.22689280275926282F); + this.chestOrnament = new ModelRenderer(this, 29, 37); + this.chestOrnament.setRotationPoint(0.0F, 3.0F, -3.0F); + this.chestOrnament.addBox(-2.0F, -2.0F, -0.5F, 4, 4, 1, 0.0F); + this.rightFloater1 = new ModelRenderer(this, 0, 78); + this.rightFloater1.mirror = true; + this.rightFloater1.setRotationPoint(-1.0F, 7.0F, 0.0F); + this.rightFloater1.addBox(-4.5F, -2.0F, -1.5F, 1, 3, 3, 0.0F); + this.setRotateAngle(rightFloater1, -0.148352986419518F, 0.5040510879759623F, -0.30002209841782523F); + this.leftArmPlate2 = new ModelRenderer(this, 21, 51); + this.leftArmPlate2.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftArmPlate2.addBox(3.5F, -0.5F, -4.0F, 1, 4, 8, 0.0F); + this.setRotateAngle(leftArmPlate2, 0.0F, -0.0F, -0.5585053606381855F); + this.rightFoot1 = new ModelRenderer(this, 0, 110); + this.rightFoot1.mirror = true; + this.rightFoot1.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightFoot1.addBox(-3.0F, 9.5F, -5.0F, 5, 3, 8, 0.0F); + this.chestPlate3 = new ModelRenderer(this, 29, 33); + this.chestPlate3.setRotationPoint(0.0F, 3.0F, -3.0F); + this.chestPlate3.addBox(1.0F, -1.0F, 0.0F, 5, 2, 1, 0.0F); + this.setRotateAngle(chestPlate3, 0.17457550921422682F, 0.060447682496676876F, 0.5246555175572628F); + this.chestPlate1 = new ModelRenderer(this, 29, 33); + this.chestPlate1.setRotationPoint(0.0F, 3.0F, -3.0F); + this.chestPlate1.addBox(1.0F, -1.0F, 0.0F, 5, 2, 1, 0.0F); + this.setRotateAngle(chestPlate1, 0.10467716894167224F, 0.060447682496676876F, -0.5246555175572628F); + this.rightArm = new ModelRenderer(this, 0, 51); + this.rightArm.mirror = true; + this.rightArm.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightArm.addBox(-3.5F, 2.0F, -2.5F, 5, 9, 5, 0.0F); + this.leftFoot2 = new ModelRenderer(this, 27, 110); + this.leftFoot2.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftFoot2.addBox(-2.0F, 7.5F, -3.0F, 5, 2, 6, 0.0F); + this.leftFootPlate = new ModelRenderer(this, 21, 94); + this.leftFootPlate.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftFootPlate.addBox(0.5F, 9.5F, -3.5F, 1, 3, 7, 0.0F); + this.setRotateAngle(leftFootPlate, 0.0F, -0.0F, -0.22689280275926282F); + this.facePlate1 = new ModelRenderer(this, 23, 64); + this.facePlate1.setRotationPoint(0.0F, 0.0F, 0.0F); + this.facePlate1.addBox(-4.0F, -4.5F, -4.5F, 8, 2, 1, 0.0F); + this.leftArmPlate1 = new ModelRenderer(this, 21, 51); + this.leftArmPlate1.setRotationPoint(0.0F, 0.0F, 0.0F); + this.leftArmPlate1.addBox(4.5F, -2.0F, -4.0F, 1, 4, 8, 0.0F); + this.setRotateAngle(leftArmPlate1, 0.0F, -0.0F, -0.5585053606381855F); + this.topWingPlate = new ModelRenderer(this, 34, 68); + this.topWingPlate.setRotationPoint(0.0F, 0.0F, 0.0F); + this.topWingPlate.addBox(-4.5F, -2.5F, -9.100000381469727F, 9, 3, 1, 0.0F); + this.setRotateAngle(topWingPlate, -0.9773843884468076F, -0.0F, 0.0F); + this.rightWingPlate3 = new ModelRenderer(this, 38, 92); + this.rightWingPlate3.mirror = true; + this.rightWingPlate3.setRotationPoint(0.0F, 0.0F, 0.0F); + this.rightWingPlate3.addBox(-4.5F, -5.0F, -3.9000000953674316F, 1, 5, 9, 0.0F); + this.setRotateAngle(rightWingPlate3, 0.0F, -0.12217304855585097F, 0.0F); + + this.backPlate = new ModelRenderer(this, 59, 102); + this.backPlate.setRotationPoint(0.0F, 0.0F, 0.0F); + this.backPlate.addBox(-4.5F, -7.5F, 4.0F, 9, 8, 1, 0.0F); + this.setRotateAngle(backPlate, 0.1047197580337524F, -0.0F, 0.0F); + this.facePlate2 = new ModelRenderer(this, 23, 68); + this.facePlate2.setRotationPoint(0.0F, 0.0F, 0.0F); + this.facePlate2.addBox(-1.0F, -4.5F, -5.0F, 2, 2, 1, 0.0F); + this.rightFloater4 = new ModelRenderer(this, 0, 78); + this.rightFloater4.mirror = true; + this.rightFloater4.setRotationPoint(-1.0F, 7.0F, 0.0F); + this.rightFloater4.addBox(-4.5F, -2.0F, -1.5F, 1, 3, 3, 0.0F); + this.setRotateAngle(rightFloater4, 1.5707963267948966F, -1.3089969389957472F, -1.5707963267948966F); + this.forePlate = new ModelRenderer(this, 23, 77); + this.forePlate.setRotationPoint(0.0F, 0.0F, 0.0F); + this.forePlate.addBox(-4.0F, -7.900000095367432F, -4.5F, 8, 3, 1, 0.0F); + this.setRotateAngle(forePlate, 0.13962633907794952F, -0.0F, 0.0F); + this.chestPlate5 = new ModelRenderer(this, 29, 33); + this.chestPlate5.mirror = true; + this.chestPlate5.setRotationPoint(0.0F, 3.0F, -3.0F); + this.chestPlate5.addBox(-6.0F, -1.0F, 0.0F, 5, 2, 1, 0.0F); + this.setRotateAngle(chestPlate5, 0.13962633907794952F, -0.06981316953897476F, 0.0F); + + this.bipedBody.cubeList.clear(); + this.bipedHead.cubeList.clear(); + this.bipedHeadwear.cubeList.clear(); + this.bipedLeftArm.cubeList.clear(); + this.bipedLeftLeg.cubeList.clear(); + this.bipedRightArm.cubeList.clear(); + this.bipedRightLeg.cubeList.clear(); + + if(addChestPiece) + { + this.bipedLeftArm.addChild(this.leftFloater1); + this.bipedRightArm.addChild(this.rightArmPlate1); + this.bipedLeftArm.addChild(this.leftShoulder); + this.bipedLeftArm.addChild(this.leftArmPlate3); + this.bipedLeftArm.addChild(this.leftFloater4); + this.bipedRightArm.addChild(this.rightShoulder); + this.bipedLeftArm.addChild(this.leftFloater3); + this.bipedRightArm.addChild(this.rightArmPlate3); + this.bipedBody.addChild(this.chestPlate6); + this.bipedRightArm.addChild(this.rightArmPlate2); + this.bipedLeftArm.addChild(this.leftFloater2); + this.bipedRightArm.addChild(this.rightFloater2); + this.bipedLeftArm.addChild(this.leftArm); + this.bipedBody.addChild(this.chestMain); + this.bipedBody.addChild(this.chestPlate4); + this.bipedRightArm.addChild(this.rightFloater3); + this.bipedBody.addChild(this.chestPlate2); + this.bipedBody.addChild(this.chestOrnament); + this.bipedRightArm.addChild(this.rightFloater1); + this.bipedLeftArm.addChild(this.leftArmPlate2); + this.bipedBody.addChild(this.chestPlate3); + this.bipedBody.addChild(this.chestPlate1); + this.bipedRightArm.addChild(this.rightArm); + this.bipedRightArm.addChild(this.rightFloater4); + this.bipedBody.addChild(this.chestPlate5); + this.bipedLeftArm.addChild(this.leftArmPlate1); + } + + if(addLeggings) + { + this.bipedLeftLeg.addChild(this.leftLegFloater3); + this.bipedLeftLeg.addChild(this.leftLegFloater1); + this.bipedRightLeg.addChild(this.rightLegFloater2); + this.bipedRightLeg.addChild(this.rightLegFloater3); + this.bipedBody.addChild(this.belt); + this.bipedRightLeg.addChild(this.rightLegFloater1); + this.bipedRightLeg.addChild(this.rightLeg); + this.bipedLeftLeg.addChild(this.leftLegFloater2); + this.bipedLeftLeg.addChild(this.leftLeg); + } + + if(addBoots) + { + this.bipedLeftLeg.addChild(this.leftFoot1); + this.bipedRightLeg.addChild(this.rightFoot2); + this.bipedRightLeg.addChild(this.rightFootPlate); + this.bipedRightLeg.addChild(this.rightFoot1); + this.bipedLeftLeg.addChild(this.leftFoot2); + this.bipedLeftLeg.addChild(this.leftFootPlate); + } + + if(addHelmet) + { + this.bipedHead.addChild(this.rightWingPlate2); + this.bipedHead.addChild(this.leftWingPlate3); + this.bipedHead.addChild(this.topPlate); + this.bipedHead.addChild(this.leftWingPlate1); + this.bipedHead.addChild(this.facePlate4); + this.bipedHead.addChild(this.leftWingPlate2); + this.bipedHead.addChild(this.facePlate3); + this.bipedHead.addChild(this.rightWingPlate1); + this.bipedHead.addChild(this.facePlate1); + this.bipedHead.addChild(this.topWingPlate); + this.bipedHead.addChild(this.rightWingPlate3); + this.bipedHead.addChild(this.backPlate); + this.bipedHead.addChild(this.facePlate2); + this.bipedHead.addChild(this.forePlate); + } + } + + @Override + public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) + { + this.setRotationAngles(f, f1, f2, f3, f4, f5, entity); + this.bipedBody.render(f5); + this.bipedRightLeg.render(f5); + this.bipedLeftLeg.render(f5); + this.bipedRightArm.render(f5); + this.bipedLeftArm.render(f5); + this.bipedHead.render(f5); + } + + /** + * This is a helper function from Tabula to set the rotation of model parts + */ + public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) { + modelRenderer.rotateAngleX = x; + modelRenderer.rotateAngleY = y; + modelRenderer.rotateAngleZ = z; + } +} diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/rituals/RitualEffectOmegaTest.java b/src/main/java/WayofTime/alchemicalWizardry/common/rituals/RitualEffectOmegaTest.java new file mode 100644 index 00000000..52673304 --- /dev/null +++ b/src/main/java/WayofTime/alchemicalWizardry/common/rituals/RitualEffectOmegaTest.java @@ -0,0 +1,73 @@ +package WayofTime.alchemicalWizardry.common.rituals; + +import java.util.ArrayList; +import java.util.List; + +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.world.World; +import WayofTime.alchemicalWizardry.ModItems; +import WayofTime.alchemicalWizardry.api.rituals.IMasterRitualStone; +import WayofTime.alchemicalWizardry.api.rituals.RitualComponent; +import WayofTime.alchemicalWizardry.api.rituals.RitualEffect; +import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler; +import WayofTime.alchemicalWizardry.common.omega.OmegaParadigm; +import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper; + +public class RitualEffectOmegaTest extends RitualEffect +{ + @Override + public void performEffect(IMasterRitualStone ritualStone) + { + String owner = ritualStone.getOwner(); + + int currentEssence = SoulNetworkHandler.getCurrentEssence(owner); + World world = ritualStone.getWorld(); + int x = ritualStone.getXCoord(); + int y = ritualStone.getYCoord(); + int z = ritualStone.getZCoord(); + + if (world.getWorldTime() % 200 != 0) + { + return; + } + + double range = 2; + + List playerList = SpellHelper.getPlayersInRange(world, x + 0.5, y + 0.5, z + 0.5, range, range); + + for(EntityPlayer player : playerList) + { + OmegaParadigm waterParadigm = new OmegaParadigm(ModItems.boundHelmetWater, ModItems.boundPlateWater, ModItems.boundLeggingsWater, ModItems.boundBootsWater); + waterParadigm.convertPlayerArmour(player); + } + } + + @Override + public int getCostPerRefresh() + { + return 0; + } + + @Override + public List getRitualComponentList() + { + ArrayList animalGrowthRitual = new ArrayList(); + animalGrowthRitual.add(new RitualComponent(0, 0, 2, RitualComponent.WATER)); + animalGrowthRitual.add(new RitualComponent(2, 0, 0, RitualComponent.WATER)); + animalGrowthRitual.add(new RitualComponent(0, 0, -2, RitualComponent.WATER)); + animalGrowthRitual.add(new RitualComponent(-2, 0, 0, RitualComponent.WATER)); + animalGrowthRitual.add(new RitualComponent(0, 0, 1, RitualComponent.WATER)); + animalGrowthRitual.add(new RitualComponent(1, 0, 0, RitualComponent.WATER)); + animalGrowthRitual.add(new RitualComponent(0, 0, -1, RitualComponent.WATER)); + animalGrowthRitual.add(new RitualComponent(-1, 0, 0, RitualComponent.WATER)); + animalGrowthRitual.add(new RitualComponent(1, 0, 2, RitualComponent.WATER)); + animalGrowthRitual.add(new RitualComponent(-1, 0, 2, RitualComponent.WATER)); + animalGrowthRitual.add(new RitualComponent(1, 0, -2, RitualComponent.WATER)); + animalGrowthRitual.add(new RitualComponent(-1, 0, -2, RitualComponent.WATER)); + animalGrowthRitual.add(new RitualComponent(2, 0, 1, RitualComponent.AIR)); + animalGrowthRitual.add(new RitualComponent(2, 0, -1, RitualComponent.AIR)); + animalGrowthRitual.add(new RitualComponent(-2, 0, 1, RitualComponent.AIR)); + animalGrowthRitual.add(new RitualComponent(-2, 0, -1, RitualComponent.AIR)); + return animalGrowthRitual; + } +} diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/rituals/RitualEffectUnbinding.java b/src/main/java/WayofTime/alchemicalWizardry/common/rituals/RitualEffectUnbinding.java index ccbdf4b1..21313a63 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/rituals/RitualEffectUnbinding.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/rituals/RitualEffectUnbinding.java @@ -8,8 +8,8 @@ import WayofTime.alchemicalWizardry.api.rituals.IMasterRitualStone; import WayofTime.alchemicalWizardry.api.rituals.RitualComponent; import WayofTime.alchemicalWizardry.api.rituals.RitualEffect; import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler; -import WayofTime.alchemicalWizardry.common.items.BoundArmour; import WayofTime.alchemicalWizardry.common.items.EnergyItems; +import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour; import WayofTime.alchemicalWizardry.common.items.sigil.SigilOfHolding; import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper; import net.minecraft.entity.effect.EntityLightningBolt; diff --git a/src/main/resources/assets/alchemicalwizardry/models/armor/OmegaEarth.png b/src/main/resources/assets/alchemicalwizardry/models/armor/OmegaEarth.png new file mode 100644 index 00000000..6b95f9c4 Binary files /dev/null and b/src/main/resources/assets/alchemicalwizardry/models/armor/OmegaEarth.png differ diff --git a/src/main/resources/assets/alchemicalwizardry/models/armor/OmegaWater.png b/src/main/resources/assets/alchemicalwizardry/models/armor/OmegaWater.png new file mode 100644 index 00000000..067fb05b Binary files /dev/null and b/src/main/resources/assets/alchemicalwizardry/models/armor/OmegaWater.png differ diff --git a/src/main/resources/assets/alchemicalwizardry/models/armor/OmegaWind.png b/src/main/resources/assets/alchemicalwizardry/models/armor/OmegaWind.png new file mode 100644 index 00000000..7ef69c3e Binary files /dev/null and b/src/main/resources/assets/alchemicalwizardry/models/armor/OmegaWind.png differ