当前位置: 首页>>代码示例>>Java>>正文


Java EnumArmorMaterial.getDamageReductionAmount方法代码示例

本文整理汇总了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;
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:18,代码来源:ItemArmourMFOld.java

示例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);
}
 
开发者ID:beats16,项目名称:ObsidiCraft,代码行数:13,代码来源:ItemObsidianArmor.java

示例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;
}
 
开发者ID:maximka1221,项目名称:MaxCraft,代码行数:10,代码来源:MectoriditeArmor.java

示例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;
}
 
开发者ID:maximka1221,项目名称:MaxCraft,代码行数:10,代码来源:SEMArmor.java

示例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);
}
 
开发者ID:beats16,项目名称:ObsidiCraft,代码行数:13,代码来源:ItemBlackDiamondArmor.java


注:本文中的net.minecraft.item.EnumArmorMaterial.getDamageReductionAmount方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。