Admiral_Damage

Untitled

Oct 10th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.18 KB | None | 0 0
  1. package eu.tetrabyte.contentmod.items;
  2.  
  3. import eu.tetrabyte.contentmod.ContentMod;
  4. import net.minecraft.client.model.ModelBiped;
  5. import net.minecraft.entity.EntityLivingBase;
  6. import net.minecraft.item.ItemArmor;
  7. import net.minecraft.item.ItemStack;
  8. import net.minecraftforge.fml.relauncher.Side;
  9. import net.minecraftforge.fml.relauncher.SideOnly;
  10.  
  11. public class ArmorTwo extends ItemArmor {
  12.     private static float scale = 0.125F;
  13.     static ModelBiped armorModel = null;
  14.     protected ModelBiped modelWithAttributes;
  15.    
  16.     public ArmorTwo(ArmorMaterial material, int renderIndex, int armorType) {
  17.         super(material, renderIndex, armorType);
  18.         this.setMaxStackSize(1);
  19.         this.setCreativeTab(ContentMod.tabContent);
  20.     }
  21.    
  22.     public static void init() {
  23.         armorModel = new ModelBiped(scale);
  24.        
  25.     }
  26.    
  27.     @Override
  28.     @SideOnly(Side.CLIENT)
  29.     public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, int armorSlot) {
  30.         armorModel.setModelAttributes(modelWithAttributes);
  31.         return null;
  32.     }
  33.    
  34.    
  35.  
  36.     /*
  37.     public int getColor(ItemStack itemstack) {
  38.         return 0xFFFFFF;
  39.     }
  40.    
  41.     public int getColorFromItemStack(ItemStack itemstack, int renderpass) {
  42.         return 0xFFFFFF;
  43.     }
  44.     */
  45. }
Advertisement
Add Comment
Please, Sign In to add comment