Merging armors
This commit is contained in:
parent
07b69ca8e0
commit
6badf4c9de
6 changed files with 22 additions and 127 deletions
15
.gitignore
vendored
15
.gitignore
vendored
|
|
@ -1,9 +1,10 @@
|
||||||
|
/*/
|
||||||
/*
|
/*
|
||||||
|
|
||||||
!/common/assets/
|
!common/assets/**
|
||||||
!/common/mysticores/
|
!common/mysticores/**
|
||||||
!/common/mysticruins/
|
!common/mysticruins/**
|
||||||
!/common/mysticstones/
|
!common/mysticstones/**
|
||||||
!/common/mysticworld/
|
!common/mysticworld/**
|
||||||
!/common/mcmod.info
|
!common/mcmod.info
|
||||||
!/common/build.gradle
|
!common/build.gradle
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
package mysticworld.items;
|
|
||||||
|
|
||||||
import mysticworld.MysticWorld;
|
|
||||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
|
||||||
import net.minecraft.entity.Entity;
|
|
||||||
import net.minecraft.item.ItemArmor;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
|
|
||||||
public class ItemArmorAdamantine extends ItemArmor {
|
|
||||||
int ArmorType;
|
|
||||||
|
|
||||||
public ItemArmorAdamantine(ArmorMaterial par2EnumArmorMaterial, int par4) {
|
|
||||||
super(par2EnumArmorMaterial, 0, par4);
|
|
||||||
this.ArmorType = par4;
|
|
||||||
this.setMaxDamage(3000);
|
|
||||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) {
|
|
||||||
int suffix = this.armorType == 2 ? 2 : 1;
|
|
||||||
return "mysticworld:textures/models/armor/Adamantine_layer_" + suffix + ".png";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void registerIcons(IIconRegister iconRegister) {
|
|
||||||
itemIcon = iconRegister.registerIcon("mysticworld:AdamantineArmor_" + ArmorType);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,29 +1,15 @@
|
||||||
package mysticworld.items;
|
package mysticworld.items;
|
||||||
|
|
||||||
import mysticworld.MysticWorld;
|
|
||||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
|
||||||
import net.minecraft.entity.Entity;
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.ItemArmor;
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.potion.Potion;
|
import net.minecraft.potion.Potion;
|
||||||
import net.minecraft.potion.PotionEffect;
|
import net.minecraft.potion.PotionEffect;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
public class ItemArmorIridium extends ItemArmor {
|
public class ItemArmorIridium extends ItemMaterialArmor {
|
||||||
int ArmorType;
|
|
||||||
|
|
||||||
public ItemArmorIridium(ArmorMaterial par2EnumArmorMaterial, int par4) {
|
public ItemArmorIridium(ArmorMaterial par2EnumArmorMaterial, int par4) {
|
||||||
super(par2EnumArmorMaterial, 0, par4);
|
super(par2EnumArmorMaterial, par4);
|
||||||
this.ArmorType = par4;
|
|
||||||
this.setMaxDamage(4000);
|
this.setMaxDamage(4000);
|
||||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) {
|
|
||||||
int suffix = this.armorType == 2 ? 2 : 1;
|
|
||||||
return "mysticworld:textures/models/armor/Iridium_layer_" + suffix + ".png";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -56,9 +42,4 @@ public class ItemArmorIridium extends ItemArmor {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void registerIcons(IIconRegister iconRegister) {
|
|
||||||
itemIcon = iconRegister.registerIcon("mysticworld:IridiumArmor_" + ArmorType);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
package mysticworld.items;
|
|
||||||
|
|
||||||
import mysticworld.MysticWorld;
|
|
||||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
|
||||||
import net.minecraft.entity.Entity;
|
|
||||||
import net.minecraft.item.ItemArmor;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
|
|
||||||
public class ItemArmorMithril extends ItemArmor {
|
|
||||||
int ArmorType;
|
|
||||||
|
|
||||||
public ItemArmorMithril(ArmorMaterial par2EnumArmorMaterial, int par4) {
|
|
||||||
super(par2EnumArmorMaterial, 0, par4);
|
|
||||||
this.ArmorType = par4;
|
|
||||||
this.setMaxDamage(500);
|
|
||||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) {
|
|
||||||
int suffix = this.armorType == 2 ? 2 : 1;
|
|
||||||
return "mysticworld:textures/models/armor/Mithril_layer_" + suffix + ".png";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void registerIcons(IIconRegister iconRegister) {
|
|
||||||
itemIcon = iconRegister.registerIcon("mysticworld:MithrilArmor_" + ArmorType);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
package mysticworld.items;
|
|
||||||
|
|
||||||
import mysticworld.MysticWorld;
|
|
||||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
|
||||||
import net.minecraft.entity.Entity;
|
|
||||||
import net.minecraft.item.ItemArmor;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
|
|
||||||
public class ItemArmorVerdite extends ItemArmor {
|
|
||||||
int ArmorType;
|
|
||||||
|
|
||||||
public ItemArmorVerdite(ArmorMaterial par2EnumArmorMaterial, int par4) {
|
|
||||||
super(par2EnumArmorMaterial, 0, par4);
|
|
||||||
this.ArmorType = par4;
|
|
||||||
this.setMaxDamage(262);
|
|
||||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) {
|
|
||||||
int suffix = this.armorType == 2 ? 2 : 1;
|
|
||||||
return "mysticworld:textures/models/armor/Verdite_layer_" + suffix + ".png";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void registerIcons(IIconRegister iconRegister) {
|
|
||||||
itemIcon = iconRegister.registerIcon("mysticworld:VerditeArmor_" + ArmorType);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -58,18 +58,18 @@ public class ItemHandler {
|
||||||
earthOrb = new ItemOrbEarth().setUnlocalizedName(Strings.EARTH_ORB_NAME);
|
earthOrb = new ItemOrbEarth().setUnlocalizedName(Strings.EARTH_ORB_NAME);
|
||||||
airOrb = new ItemOrbAir().setUnlocalizedName(Strings.AIR_ORB_NAME);
|
airOrb = new ItemOrbAir().setUnlocalizedName(Strings.AIR_ORB_NAME);
|
||||||
energyOrb = new ItemOrbEnergy().setUnlocalizedName(Strings.ENERGY_ORB_NAME);
|
energyOrb = new ItemOrbEnergy().setUnlocalizedName(Strings.ENERGY_ORB_NAME);
|
||||||
verditeHelmet = new ItemArmorVerdite(EnumArmor.Verdite, 0).setUnlocalizedName(Strings.VERDITE_HELMET_NAME);
|
verditeHelmet = new ItemMaterialArmor(EnumArmor.Verdite, 0).setUnlocalizedName(Strings.VERDITE_HELMET_NAME).setMaxDamage(262);
|
||||||
verditeChestplate = new ItemArmorVerdite(EnumArmor.Verdite, 1).setUnlocalizedName(Strings.VERDITE_CHESTPLATE_NAME);
|
verditeChestplate = new ItemMaterialArmor(EnumArmor.Verdite, 1).setUnlocalizedName(Strings.VERDITE_CHESTPLATE_NAME).setMaxDamage(262);
|
||||||
verditeLeggings = new ItemArmorVerdite(EnumArmor.Verdite, 2).setUnlocalizedName(Strings.VERDITE_LEGGINGS_NAME);
|
verditeLeggings = new ItemMaterialArmor(EnumArmor.Verdite, 2).setUnlocalizedName(Strings.VERDITE_LEGGINGS_NAME).setMaxDamage(262);
|
||||||
verditeBoots = new ItemArmorVerdite(EnumArmor.Verdite, 3).setUnlocalizedName(Strings.VERDITE_BOOTS_NAME);
|
verditeBoots = new ItemMaterialArmor(EnumArmor.Verdite, 3).setUnlocalizedName(Strings.VERDITE_BOOTS_NAME).setMaxDamage(262);
|
||||||
mithrilHelmet = new ItemArmorMithril(EnumArmor.Mithril, 0).setUnlocalizedName(Strings.MITHRIL_HELMET_NAME);
|
mithrilHelmet = new ItemMaterialArmor(EnumArmor.Mithril, 0).setUnlocalizedName(Strings.MITHRIL_HELMET_NAME).setMaxDamage(500);
|
||||||
mithrilChestplate = new ItemArmorMithril(EnumArmor.Mithril, 1).setUnlocalizedName(Strings.MITHRIL_CHESTPLATE_NAME);
|
mithrilChestplate = new ItemMaterialArmor(EnumArmor.Mithril, 1).setUnlocalizedName(Strings.MITHRIL_CHESTPLATE_NAME).setMaxDamage(500);
|
||||||
mithrilLeggings = new ItemArmorMithril(EnumArmor.Mithril, 2).setUnlocalizedName(Strings.MITHRIL_LEGGINGS_NAME);
|
mithrilLeggings = new ItemMaterialArmor(EnumArmor.Mithril, 2).setUnlocalizedName(Strings.MITHRIL_LEGGINGS_NAME).setMaxDamage(500);
|
||||||
mithrilBoots = new ItemArmorMithril(EnumArmor.Mithril, 3).setUnlocalizedName(Strings.MITHRIL_BOOTS_NAME);
|
mithrilBoots = new ItemMaterialArmor(EnumArmor.Mithril, 3).setUnlocalizedName(Strings.MITHRIL_BOOTS_NAME).setMaxDamage(500);
|
||||||
adamantineHelmet = new ItemArmorAdamantine(EnumArmor.Adamantine, 0).setUnlocalizedName(Strings.ADAMANTINE_HELMET_NAME);
|
adamantineHelmet = new ItemMaterialArmor(EnumArmor.Adamantine, 0).setUnlocalizedName(Strings.ADAMANTINE_HELMET_NAME).setMaxDamage(3000);
|
||||||
adamantineChestplate = new ItemArmorAdamantine(EnumArmor.Adamantine, 1).setUnlocalizedName(Strings.ADAMANTINE_CHESTPLATE_NAME);
|
adamantineChestplate = new ItemMaterialArmor(EnumArmor.Adamantine, 1).setUnlocalizedName(Strings.ADAMANTINE_CHESTPLATE_NAME).setMaxDamage(3000);
|
||||||
adamantineLeggings = new ItemArmorAdamantine(EnumArmor.Adamantine, 2).setUnlocalizedName(Strings.ADAMANTINE_LEGGINGS_NAME);
|
adamantineLeggings = new ItemMaterialArmor(EnumArmor.Adamantine, 2).setUnlocalizedName(Strings.ADAMANTINE_LEGGINGS_NAME).setMaxDamage(3000);
|
||||||
adamantineBoots = new ItemArmorAdamantine(EnumArmor.Adamantine, 3).setUnlocalizedName(Strings.ADAMANTINE_BOOTS_NAME);
|
adamantineBoots = new ItemMaterialArmor(EnumArmor.Adamantine, 3).setUnlocalizedName(Strings.ADAMANTINE_BOOTS_NAME).setMaxDamage(3000);
|
||||||
iridiumHelmet = new ItemArmorIridium(EnumArmor.Iridium, 0).setUnlocalizedName(Strings.IRIDIUM_HELMET_NAME);
|
iridiumHelmet = new ItemArmorIridium(EnumArmor.Iridium, 0).setUnlocalizedName(Strings.IRIDIUM_HELMET_NAME);
|
||||||
iridiumChestplate = new ItemArmorIridium(EnumArmor.Iridium, 1).setUnlocalizedName(Strings.IRIDIUM_CHESTPLATE_NAME);
|
iridiumChestplate = new ItemArmorIridium(EnumArmor.Iridium, 1).setUnlocalizedName(Strings.IRIDIUM_CHESTPLATE_NAME);
|
||||||
iridiumLeggings = new ItemArmorIridium(EnumArmor.Iridium, 2).setUnlocalizedName(Strings.IRIDIUM_LEGGINGS_NAME);
|
iridiumLeggings = new ItemArmorIridium(EnumArmor.Iridium, 2).setUnlocalizedName(Strings.IRIDIUM_LEGGINGS_NAME);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue