Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package O3Bubbles09.mod.Common;
- import net.minecraft.creativetab.CreativeTabs;
- import net.minecraft.entity.EntityLiving;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.item.EnumArmorMaterial;
- import net.minecraft.item.ItemArmor;
- import net.minecraft.item.ItemStack;
- import net.minecraft.util.DamageSource;
- import net.minecraft.world.World;
- import net.minecraftforge.common.IArmorTextureProvider;
- import net.minecraftforge.common.ISpecialArmor;
- public class ItemmodArmorBoots extends ItemArmor implements IArmorTextureProvider {
- public ItemmodArmorBoots(int id, EnumArmorMaterial EAM, int par1, int par2) {
- super(id, EAM, par1, par2);
- this.setCreativeTab(O3Bubbles09Main.O3ArmorTab);
- }
- public void onArmorTickUpdate(World world, EntityPlayer player, ItemStack itemStack) {
- if(!world.isRemote) {
- ItemStack helm = player.inventory.armorItemInSlot(0);
- if(helm.itemID == O3Bubbles09Main.copperBoots.itemID) {
- System.out.println("Activated");
- player.fallDistance = 0.0F;
- }
- }
- }
- public String getArmorTextureFile(ItemStack itemstack) {
- O3Bubbles09Main bubs = new O3Bubbles09Main();
- if (itemstack.itemID == bubs.copperHelm.itemID
- || itemstack.itemID == bubs.copperChest.itemID
- || itemstack.itemID == bubs.copperBoots.itemID) {
- return "/O3Bubbles09/mod/Common/copperArmour_1.png";
- }
- if (itemstack.itemID == bubs.copperLegs.itemID) {
- return "/O3Bubbles09/mod/Common/copperArmour_2.png";
- }
- return "/O3Bubbles09/mod/Common/copperArmour_2.png";
- }
- public String getTextureFile() {
- return CommonProxy.ITEMS;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement