Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package eu.tetrabyte.contentmod.items;
- import eu.tetrabyte.contentmod.ContentMod;
- import net.minecraft.client.model.ModelBiped;
- import net.minecraft.entity.EntityLivingBase;
- import net.minecraft.item.ItemArmor;
- import net.minecraft.item.ItemStack;
- import net.minecraftforge.fml.relauncher.Side;
- import net.minecraftforge.fml.relauncher.SideOnly;
- public class ArmorTwo extends ItemArmor {
- private static float scale = 0.125F;
- static ModelBiped armorModel = null;
- protected ModelBiped modelWithAttributes;
- public ArmorTwo(ArmorMaterial material, int renderIndex, int armorType) {
- super(material, renderIndex, armorType);
- this.setMaxStackSize(1);
- this.setCreativeTab(ContentMod.tabContent);
- }
- public static void init() {
- armorModel = new ModelBiped(scale);
- }
- @Override
- @SideOnly(Side.CLIENT)
- public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, int armorSlot) {
- armorModel.setModelAttributes(modelWithAttributes);
- return null;
- }
- /*
- public int getColor(ItemStack itemstack) {
- return 0xFFFFFF;
- }
- public int getColorFromItemStack(ItemStack itemstack, int renderpass) {
- return 0xFFFFFF;
- }
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment