Reorganized github - Renamed packages lowercase
This commit is contained in:
parent
5a3a6d4a8e
commit
579ddee7f0
362 changed files with 5163 additions and 8935 deletions
|
|
@ -1,8 +1,7 @@
|
|||
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.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.EnumArmorMaterial;
|
||||
|
|
@ -12,89 +11,72 @@ import net.minecraft.potion.Potion;
|
|||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class ItemArmorIridium extends ItemArmor
|
||||
{
|
||||
public class ItemArmorIridium extends ItemArmor {
|
||||
int ArmorType;
|
||||
|
||||
String ArmorFile_1;
|
||||
String ArmorFile_2;
|
||||
|
||||
public ItemArmorIridium(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
|
||||
|
||||
super(par1, par2EnumArmorMaterial,par3,par4);
|
||||
this.ArmorType=par4;
|
||||
this.setMaxDamage(4000);
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
this.ArmorFile_1 = "/assets/MysticMods/textures/armor/iridium_1.png";
|
||||
this.ArmorFile_2 = "/assets/MysticMods/textures/armor/iridium_2.png";
|
||||
}
|
||||
super(par1, par2EnumArmorMaterial, par3, par4);
|
||||
this.ArmorType = par4;
|
||||
this.setMaxDamage(4000);
|
||||
this.setCreativeTab(MysticWorld.MysticWorldTab);
|
||||
this.ArmorFile_1 = "/assets/MysticMods/textures/armor/iridium_1.png";
|
||||
this.ArmorFile_2 = "/assets/MysticMods/textures/armor/iridium_2.png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IconRegister iconRegister)
|
||||
{
|
||||
switch (ArmorType){
|
||||
case 0:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:IridiumArmor_0");
|
||||
break;
|
||||
case 1:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:IridiumArmor_1");
|
||||
break;
|
||||
case 2:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:IridiumArmor_2");
|
||||
break;
|
||||
case 3:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:IridiumArmor_3");
|
||||
break;
|
||||
@Override
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) {
|
||||
int suffix = this.armorType == 2 ? 2 : 1;
|
||||
return "MysticMods:textures" + "/models/armor/Iridium_layer_" + suffix + ".png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onArmorTickUpdate(World world, EntityPlayer player, ItemStack itemStack) {
|
||||
ItemStack helmet = player.getCurrentItemOrArmor(4);
|
||||
ItemStack plate = player.getCurrentItemOrArmor(3);
|
||||
ItemStack legs = player.getCurrentItemOrArmor(2);
|
||||
ItemStack boots = player.getCurrentItemOrArmor(1);
|
||||
if (helmet != null) {
|
||||
if (helmet.itemID == ItemHandler$1.iridiumHelmet.itemID) {
|
||||
player.addPotionEffect((new PotionEffect(Potion.nightVision.getId(), 200, 0)));
|
||||
}
|
||||
}
|
||||
|
||||
public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer)
|
||||
{
|
||||
int suffix = this.armorType == 2 ? 2 : 1;
|
||||
|
||||
return "MysticMods:textures" + "/models/armor/Iridium_layer_" + suffix + ".png";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onArmorTickUpdate(World world, EntityPlayer player, ItemStack itemStack)
|
||||
{
|
||||
ItemStack helmet = player.getCurrentItemOrArmor(4);
|
||||
ItemStack plate = player.getCurrentItemOrArmor(3);
|
||||
ItemStack legs = player.getCurrentItemOrArmor(2);
|
||||
ItemStack boots = player.getCurrentItemOrArmor(1);
|
||||
if (helmet != null)
|
||||
{
|
||||
if(helmet.itemID == ItemHandler$1.iridiumHelmet.itemID)
|
||||
{
|
||||
player.addPotionEffect((new PotionEffect(Potion.nightVision.getId(), 200, 0)));
|
||||
}
|
||||
}
|
||||
|
||||
if (plate != null)
|
||||
{
|
||||
if(plate.itemID == ItemHandler$1.iridiumChestplate.itemID)
|
||||
{
|
||||
player.addPotionEffect((new PotionEffect(Potion.regeneration.getId(), 200, 0)));
|
||||
}
|
||||
}
|
||||
|
||||
if (legs != null)
|
||||
{
|
||||
if(legs.itemID == ItemHandler$1.iridiumLeggings.itemID)
|
||||
{
|
||||
player.addPotionEffect((new PotionEffect(Potion.moveSpeed.getId(), 200, 2)));
|
||||
player.addVelocity(0.0005, 0, 0.0005);
|
||||
player.stepHeight = 1.001F;
|
||||
}
|
||||
}
|
||||
|
||||
if (boots != null)
|
||||
{
|
||||
if(boots.itemID == ItemHandler$1.iridiumBoots.itemID)
|
||||
{
|
||||
player.fallDistance = 0.0F;
|
||||
player.addPotionEffect((new PotionEffect(Potion.jump.getId(), 200, 2)));
|
||||
}
|
||||
if (plate != null) {
|
||||
if (plate.itemID == ItemHandler$1.iridiumChestplate.itemID) {
|
||||
player.addPotionEffect((new PotionEffect(Potion.regeneration.getId(), 200, 0)));
|
||||
}
|
||||
}
|
||||
if (legs != null) {
|
||||
if (legs.itemID == ItemHandler$1.iridiumLeggings.itemID) {
|
||||
player.addPotionEffect((new PotionEffect(Potion.moveSpeed.getId(), 200, 2)));
|
||||
player.addVelocity(0.0005, 0, 0.0005);
|
||||
player.stepHeight = 1.001F;
|
||||
}
|
||||
}
|
||||
if (boots != null) {
|
||||
if (boots.itemID == ItemHandler$1.iridiumBoots.itemID) {
|
||||
player.fallDistance = 0.0F;
|
||||
player.addPotionEffect((new PotionEffect(Potion.jump.getId(), 200, 2)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
switch (ArmorType) {
|
||||
case 0:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:IridiumArmor_0");
|
||||
break;
|
||||
case 1:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:IridiumArmor_1");
|
||||
break;
|
||||
case 2:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:IridiumArmor_2");
|
||||
break;
|
||||
case 3:
|
||||
itemIcon = iconRegister.registerIcon("MysticMods:IridiumArmor_3");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue