Reorganized github - Renamed packages lowercase
This commit is contained in:
parent
5a3a6d4a8e
commit
579ddee7f0
362 changed files with 5163 additions and 8935 deletions
|
|
@ -1,53 +1,47 @@
|
|||
package MysticWorld.Items;
|
||||
package mysticworld.items;
|
||||
|
||||
import MysticWorld.MysticWorld;
|
||||
import mysticworld.MysticWorld;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.item.EnumArmorMaterial;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ItemArmorVerdite extends ItemArmor
|
||||
{
|
||||
public class ItemArmorVerdite extends ItemArmor {
|
||||
int ArmorType;
|
||||
|
||||
String ArmorFile_1;
|
||||
String ArmorFile_2;
|
||||
|
||||
public ItemArmorVerdite(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
|
||||
|
||||
super(par1, par2EnumArmorMaterial,par3,par4);
|
||||
this.ArmorType=par4;
|
||||
this.setMaxDamage(262);
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
this.ArmorFile_1 = "/assets/MysticMods/textures/armor/verdite_1.png";
|
||||
this.ArmorFile_2 = "/assets/MysticMods/textures/armor/verdite_2.png";
|
||||
}
|
||||
super(par1, par2EnumArmorMaterial, par3, par4);
|
||||
this.ArmorType = par4;
|
||||
this.setMaxDamage(262);
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
this.ArmorFile_1 = "/assets/MysticMods/textures/armor/verdite_1.png";
|
||||
this.ArmorFile_2 = "/assets/MysticMods/textures/armor/verdite_2.png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IconRegister iconRegister)
|
||||
{
|
||||
switch (ArmorType){
|
||||
case 0:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:VerditeArmor_0");
|
||||
break;
|
||||
case 1:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:VerditeArmor_1");
|
||||
break;
|
||||
case 2:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:VerditeArmor_2");
|
||||
break;
|
||||
case 3:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:VerditeArmor_3");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer)
|
||||
{
|
||||
int suffix = this.armorType == 2 ? 2 : 1;
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) {
|
||||
int suffix = this.armorType == 2 ? 2 : 1;
|
||||
return "MysticMods:textures" + "/models/armor/Verdite_layer_" + suffix + ".png";
|
||||
}
|
||||
|
||||
return "MysticMods:textures" + "/models/armor/Verdite_layer_" + suffix + ".png";
|
||||
}
|
||||
@Override
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
switch (ArmorType) {
|
||||
case 0:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:VerditeArmor_0");
|
||||
break;
|
||||
case 1:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:VerditeArmor_1");
|
||||
break;
|
||||
case 2:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:VerditeArmor_2");
|
||||
break;
|
||||
case 3:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:VerditeArmor_3");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue