summaryrefslogtreecommitdiff
path: root/src/main/java/gmail/Lance5057/items
diff options
context:
space:
mode:
authorLance5057 <Lance5057@gmail.com>2015-01-21 20:04:34 -0600
committerLance5057 <Lance5057@gmail.com>2015-01-21 20:04:34 -0600
commitb4eb8f2d65c62afccc898808b44fdddfde0c15d1 (patch)
treeee3a9f47a22418a6778c299cc96b4fedc2265afe /src/main/java/gmail/Lance5057/items
parent39642dce74d23f025b71d5766c1ac8489a41a802 (diff)
Startup
I hope I'm doing this right...
Diffstat (limited to 'src/main/java/gmail/Lance5057/items')
-rw-r--r--src/main/java/gmail/Lance5057/items/AeonSteelIngot.java12
-rw-r--r--src/main/java/gmail/Lance5057/items/DogbeariumIngot.java11
-rw-r--r--src/main/java/gmail/Lance5057/items/ModelTinkerArmor.java109
-rw-r--r--src/main/java/gmail/Lance5057/items/QueensGoldIngot.java11
-rw-r--r--src/main/java/gmail/Lance5057/items/TinkerArmor.java76
-rw-r--r--src/main/java/gmail/Lance5057/items/TinkerHelm.tcnbin0 -> 1556 bytes
6 files changed, 219 insertions, 0 deletions
diff --git a/src/main/java/gmail/Lance5057/items/AeonSteelIngot.java b/src/main/java/gmail/Lance5057/items/AeonSteelIngot.java
new file mode 100644
index 0000000..793507a
--- /dev/null
+++ b/src/main/java/gmail/Lance5057/items/AeonSteelIngot.java
@@ -0,0 +1,12 @@
+package gmail.Lance5057.items;
+
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.item.Item;
+
+public class AeonSteelIngot extends Item
+{
+ public AeonSteelIngot()
+ {
+
+ }
+} \ No newline at end of file
diff --git a/src/main/java/gmail/Lance5057/items/DogbeariumIngot.java b/src/main/java/gmail/Lance5057/items/DogbeariumIngot.java
new file mode 100644
index 0000000..539dd08
--- /dev/null
+++ b/src/main/java/gmail/Lance5057/items/DogbeariumIngot.java
@@ -0,0 +1,11 @@
+package gmail.Lance5057.items;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.item.Item;
+
+public class DogbeariumIngot extends Item
+{
+ public DogbeariumIngot()
+ {
+
+ }
+}
diff --git a/src/main/java/gmail/Lance5057/items/ModelTinkerArmor.java b/src/main/java/gmail/Lance5057/items/ModelTinkerArmor.java
new file mode 100644
index 0000000..c205c98
--- /dev/null
+++ b/src/main/java/gmail/Lance5057/items/ModelTinkerArmor.java
@@ -0,0 +1,109 @@
+// Date: 1/19/2015 11:08:25 PM
+// Template version 1.1
+// Java generated by Techne
+// Keep in mind that you still need to fill in some blanks
+// - ZeuX
+
+package gmail.Lance5057.items;
+
+import net.minecraft.client.model.ModelBiped;
+import net.minecraft.client.model.ModelRenderer;
+import net.minecraft.entity.Entity;
+
+public class ModelTinkerArmor extends ModelBiped
+{
+ //fields
+ ModelRenderer BackPlate;
+ ModelRenderer BreastPlate;
+ ModelRenderer Plackart;
+ ModelRenderer PauldronL;
+ ModelRenderer ArmL;
+ ModelRenderer PauldronR;
+ ModelRenderer ArmR;
+
+ public ModelTinkerArmor(float f)
+ {
+ super(f, 0, 64,64);
+ textureWidth = 64;
+ textureHeight = 64;
+
+ BackPlate = new ModelRenderer(this, 0, 56);
+ BackPlate.addBox(-4F, 0F, 1F, 8, 5, 3);
+ BackPlate.setRotationPoint(0F, 0F, 0F);
+ BackPlate.setTextureSize(64, 32);
+ BackPlate.mirror = true;
+ setRotation(BackPlate, -0.0872665F, 0F, 0F);
+ this.bipedBody.addChild(BackPlate);
+
+ BreastPlate = new ModelRenderer(this, 0, 32);
+ BreastPlate.addBox(-4F, -1F, -5F, 8, 6, 4);
+ BreastPlate.setRotationPoint(0F, 0F, 0F);
+ BreastPlate.setTextureSize(64, 32);
+ BreastPlate.mirror = true;
+ setRotation(BreastPlate, 0.4363323F, 0F, 0F);
+ this.bipedBody.addChild(BreastPlate);
+
+ Plackart = new ModelRenderer(this, 0, 42);
+ Plackart.addBox(-4F, 5F, -3F, 8, 7, 6);
+ Plackart.setRotationPoint(0F, 0F, 0F);
+ Plackart.setTextureSize(64, 32);
+ Plackart.mirror = true;
+ setRotation(Plackart, 0F, 0F, 0F);
+ this.bipedBody.addChild(Plackart);
+
+ PauldronL = new ModelRenderer(this, 28, 32);
+ PauldronL.addBox(1F, -2F, -3.5F, 5, 5, 7);
+ PauldronL.setRotationPoint(0F, 0F, 0F);
+ PauldronL.setTextureSize(64, 32);
+ PauldronL.mirror = true;
+ setRotation(PauldronL, 0F, 0F, -0.7853982F);
+ this.bipedLeftArm.addChild(PauldronL);
+
+ ArmL = new ModelRenderer(this, 28, 44);
+ ArmL.addBox(-1F, -2F, -3F, 5, 10, 6);
+ ArmL.setRotationPoint(0F, 0F, 0F);
+ ArmL.setTextureSize(64, 32);
+ ArmL.mirror = true;
+ setRotation(ArmL, 0F, 0F, 0F);
+ this.bipedLeftArm.addChild(ArmL);
+
+ PauldronR = new ModelRenderer(this, 28, 32);
+ PauldronR.mirror = true;
+ PauldronR.addBox(-6F, -2F, -3.5F, 5, 5, 7);
+ PauldronR.setRotationPoint(0F, 0F, 0F);
+ PauldronR.setTextureSize(64, 32);
+ PauldronR.mirror = true;
+ setRotation(PauldronR, 0F, 0F, 0.7853982F);
+ PauldronR.mirror = false;
+ this.bipedRightArm.addChild(PauldronR);
+
+ ArmR = new ModelRenderer(this, 28, 44);
+ ArmR.mirror = true;
+ ArmR.addBox(-4F, -2F, -3F, 5, 10, 6);
+ ArmR.setRotationPoint(0F, 0F, 0F);
+ ArmR.setTextureSize(64, 32);
+ ArmR.mirror = true;
+ setRotation(ArmR, 0F, 0F, 0F);
+ ArmR.mirror = false;
+ this.bipedRightArm.addChild(ArmR);
+ }
+
+ public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
+ {
+ super.render(entity, f, f1, f2, f3, f4, f5);
+ setRotationAngles(f, f1, f2, f3, f4, f5, entity);
+ }
+
+ 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/gmail/Lance5057/items/QueensGoldIngot.java b/src/main/java/gmail/Lance5057/items/QueensGoldIngot.java
new file mode 100644
index 0000000..74c2708
--- /dev/null
+++ b/src/main/java/gmail/Lance5057/items/QueensGoldIngot.java
@@ -0,0 +1,11 @@
+package gmail.Lance5057.items;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.item.Item;
+
+public class QueensGoldIngot extends Item
+{
+ public QueensGoldIngot()
+ {
+
+ }
+}
diff --git a/src/main/java/gmail/Lance5057/items/TinkerArmor.java b/src/main/java/gmail/Lance5057/items/TinkerArmor.java
new file mode 100644
index 0000000..dd632d4
--- /dev/null
+++ b/src/main/java/gmail/Lance5057/items/TinkerArmor.java
@@ -0,0 +1,76 @@
+package gmail.Lance5057.items;
+
+import gmail.Lance5057.com.mod_TinkersDefense;
+import net.minecraft.client.model.ModelBiped;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemArmor;
+import net.minecraft.item.ItemStack;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+public class TinkerArmor extends ItemArmor
+{
+ public TinkerArmor(ArmorMaterial par2EnumArmorMaterial, int par3, int par4)
+ {
+ super(par2EnumArmorMaterial, par3, par4);
+ }
+
+ @Override
+ @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister par1IconRegister)
+ {
+ String itemName = "tinkersdefense:textures/armor/TinkerArmor.png";
+ this.itemIcon = par1IconRegister.registerIcon(itemName);
+ }
+
+ @Override
+ public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type)
+ {
+ return "tinkersdefense:textures/armor/TinkerArmor.png";
+ }
+
+ @Override
+ @SideOnly(Side.CLIENT) public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, int armorSlot)
+ {
+ ModelBiped armorModel = null;
+ if(itemStack != null)
+ {
+ if(itemStack.getItem() instanceof TinkerArmor)
+ {
+ int type = ((ItemArmor)itemStack.getItem()).armorType;
+ if(type == 1 || type == 3)
+ {
+ armorModel = mod_TinkersDefense.proxy.getArmorModel(0);
+ }
+ else
+ {
+ armorModel = mod_TinkersDefense.proxy.getArmorModel(1);
+ }
+
+ }
+ if(armorModel != null)
+ {
+ armorModel.bipedHead.showModel = armorSlot == 0;
+ armorModel.bipedHeadwear.showModel = armorSlot == 0;
+ armorModel.bipedBody.showModel = armorSlot == 1 || armorSlot == 2; armorModel.bipedRightArm.showModel = armorSlot == 1;
+ armorModel.bipedLeftArm.showModel = armorSlot == 1;
+ armorModel.bipedRightLeg.showModel = armorSlot == 2 || armorSlot == 3;
+ armorModel.bipedLeftLeg.showModel = armorSlot == 2 || armorSlot == 3;
+ armorModel.isSneak = entityLiving.isSneaking();
+ armorModel.isRiding = entityLiving.isRiding();
+ armorModel.isChild = entityLiving.isChild();
+ armorModel.heldItemRight = entityLiving.getHeldItem() != null ? 1 :0;
+
+ if(entityLiving instanceof EntityPlayer)
+ {
+ armorModel.aimedBow =((EntityPlayer)entityLiving).getItemInUseDuration() > 2;
+ }
+ return armorModel;
+ }
+ }
+ return armorModel;
+ }
+
+
+} \ No newline at end of file
diff --git a/src/main/java/gmail/Lance5057/items/TinkerHelm.tcn b/src/main/java/gmail/Lance5057/items/TinkerHelm.tcn
new file mode 100644
index 0000000..4344f18
--- /dev/null
+++ b/src/main/java/gmail/Lance5057/items/TinkerHelm.tcn
Binary files differ