本文整理汇总了Java中net.minecraft.item.EnumArmorMaterial.getDamageReductionAmount方法的典型用法代码示例。如果您正苦于以下问题:Java EnumArmorMaterial.getDamageReductionAmount方法的具体用法?Java EnumArmorMaterial.getDamageReductionAmount怎么用?Java EnumArmorMaterial.getDamageReductionAmount使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.item.EnumArmorMaterial
的用法示例。
在下文中一共展示了EnumArmorMaterial.getDamageReductionAmount方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ItemArmourMFOld
import net.minecraft.item.EnumArmorMaterial; //导入方法依赖的package包/类
public ItemArmourMFOld(int i, ArmourDesign design, EnumArmorMaterial mat, int render, int type, String s) {
super(i, mat, render, type);
AD = design;
if(isBasicMaterial(design, mat))
setCreativeTab(CreativeTabs.tabCombat);
else
setCreativeTab(ItemListMF.tabArmour);
material = mat;
file = s;
armourType = type;
renderIndex = render;
damageReduceAmount = mat.getDamageReductionAmount(type);
setMaxDamage(mat.getDurability(type));
maxStackSize = 1;
}
示例2: ItemObsidianArmor
import net.minecraft.item.EnumArmorMaterial; //导入方法依赖的package包/类
public ItemObsidianArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4)
{
super(par1, par2EnumArmorMaterial, par3, par4);
this.material = par2EnumArmorMaterial;
this.armorType = par4;
this.renderIndex = par3;
this.damageReduceAmount = par2EnumArmorMaterial.getDamageReductionAmount(par4);
this.setMaxDamage(par2EnumArmorMaterial.getDurability(par4));
this.maxStackSize = 1;
this.setCreativeTab(ObsidiCraft.tabsOC);
BlockDispenser.dispenseBehaviorRegistry.putObject(this, field_96605_cw);
}
示例3: MectoriditeArmor
import net.minecraft.item.EnumArmorMaterial; //导入方法依赖的package包/类
public MectoriditeArmor(int id, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
super(id, par2EnumArmorMaterial, par3, par4);
this.setCreativeTab(MaxCraft.tabMC);
par2EnumArmorMaterial.getDamageReductionAmount(par4);
this.setMaxDamage(par2EnumArmorMaterial.getDurability(par4));
this.setMaxStackSize(1);
this.material = par2EnumArmorMaterial;
armorNamePrefix = Strings.MectoriditeArmorPrefix;
}
示例4: SEMArmor
import net.minecraft.item.EnumArmorMaterial; //导入方法依赖的package包/类
public SEMArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
super(par1, par2EnumArmorMaterial, par3, par4);
this.setCreativeTab(MaxCraft.tabMC);
par2EnumArmorMaterial.getDamageReductionAmount(par4);
this.setMaxDamage(par2EnumArmorMaterial.getDurability(par4));
this.setMaxStackSize(1);
this.material = par2EnumArmorMaterial;
armorNamePrefix = Strings.SEMArmorPrefix;
}
示例5: ItemBlackDiamondArmor
import net.minecraft.item.EnumArmorMaterial; //导入方法依赖的package包/类
public ItemBlackDiamondArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4)
{
super(par1, par2EnumArmorMaterial, par3, par4);
this.material = par2EnumArmorMaterial;
this.armorType = par4;
this.renderIndex = par3;
this.damageReduceAmount = par2EnumArmorMaterial.getDamageReductionAmount(par4);
this.setMaxDamage(par2EnumArmorMaterial.getDurability(par4));
this.maxStackSize = 1;
this.setCreativeTab(ObsidiCraft.tabsOC);
BlockDispenser.dispenseBehaviorRegistry.putObject(this, field_96605_cw);
}