Advertisement
Zarthon_Zark

Untitled

Sep 22nd, 2021
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.69 KB | None | 0 0
  1. public ModelBiped getArmorModel(EntityLivingBase entitiyLiving, ItemStack itemstack, EntityEquipmentSlot armorslot, ModelBiped _default){
  2.        
  3.         if(itemstack != ItemStack.EMPTY) {
  4.             if(itemstack.getItem() instanceof ItemArmor) {
  5.                 ModelMithrill model = new ModelMithrill();
  6.                
  7.                 model.bipedHead.showModel = armorslot == EntityEquipmentSlot.HEAD;
  8.                 model.bipedHead.showModel = armorslot == EntityEquipmentSlot.CHEST;
  9.                
  10.                 model.isChild = _default.isChild;
  11.                 model.isRiding = _default.isRiding;
  12.                 model.isSneak = _default.isSneak;
  13.                 model.rightArmPose = _default.rightArmPose;
  14.                 model.leftArmPose = _default.leftArmPose;
  15.                
  16.                 return model;
  17.             }
  18.         }
  19.        
  20.         return null;
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement