コード例 #1
0
 public ItemObbyArmor(int id, EnumArmorMaterial obby1, int render, int type) {
   super(id, obby1, render, type);
   this.material = obby1;
   this.armorType = type;
   this.renderIndex = render;
   this.damageReduceAmount = obby1.getDamageReductionAmount(type);
   setMaxDamage(obby1.getDurability(type));
   maxStackSize = 1;
   setCreativeTab(CreativeTabs.tabCombat);
 }
コード例 #2
0
ファイル: ItemArmor.java プロジェクト: rezzanate/Spoutcraft
 public ItemArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
   super(par1);
   this.material = par2EnumArmorMaterial;
   this.armorType = par4;
   this.renderIndex = par3;
   this.damageReduceAmount = par2EnumArmorMaterial.getDamageReductionAmount(par4);
   this.setMaxDamage(par2EnumArmorMaterial.getDurability(par4));
   this.maxStackSize = 1;
   this.setCreativeTab(CreativeTabs.tabCombat);
   BlockDispenser.dispenseBehaviorRegistry.putObject(this, field_96605_cw);
 }