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


Java EnumToolMaterial.getDamageVsEntity方法代码示例

本文整理汇总了Java中net.minecraft.item.EnumToolMaterial.getDamageVsEntity方法的典型用法代码示例。如果您正苦于以下问题:Java EnumToolMaterial.getDamageVsEntity方法的具体用法?Java EnumToolMaterial.getDamageVsEntity怎么用?Java EnumToolMaterial.getDamageVsEntity使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.item.EnumToolMaterial的用法示例。


在下文中一共展示了EnumToolMaterial.getDamageVsEntity方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ItemSaw

import net.minecraft.item.EnumToolMaterial; //导入方法依赖的package包/类
public ItemSaw(int id, EnumToolMaterial material)
{
    super(id, material);
    toolMaterial = material;
    this.efficiencyOnProperMaterial  = material.getEfficiencyOnProperMaterial()*2;
    setMaxDamage(material.getMaxUses()/2);
    this.damageVsEntity = 0 + material.getDamageVsEntity();
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:9,代码来源:ItemSaw.java

示例2: ItemScytheMF

import net.minecraft.item.EnumToolMaterial; //导入方法依赖的package包/类
public ItemScytheMF(int id, EnumToolMaterial material)
{
    super(id);
    toolMaterial = material;
    setMaxDamage(material.getMaxUses());
    this.damageVsEntity = 3F + material.getDamageVsEntity();
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:8,代码来源:ItemScytheMF.java

示例3: ItemMedievalSpade

import net.minecraft.item.EnumToolMaterial; //导入方法依赖的package包/类
public ItemMedievalSpade(int id, EnumToolMaterial material)
{
    super(id, material);
    MinecraftForge.setToolClass(this, "shovel", material.getHarvestLevel());
    setCreativeTab(ItemListMF.tabTool);
    this.damageVsEntity = material.getDamageVsEntity()+2;
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:8,代码来源:ItemMedievalSpade.java

示例4: ItemHammer

import net.minecraft.item.EnumToolMaterial; //导入方法依赖的package包/类
public ItemHammer(int i, float power, EnumToolMaterial mat)
{
	super(i, mat.getEfficiencyOnProperMaterial(), mat, new Block[]{});
	this.hammerMaterial = mat;
	this.setMaxStackSize(1);
	efficiency = power;
       this.setMaxDamage(mat.getMaxUses());
       this.setCreativeTab(ItemListMF.tabTool);
       maxStackSize = 1;
       level = mat == ToolMaterialMedieval.ORNATE ? 1 : 0;
       this.damageVsEntity = mat.getDamageVsEntity()+2;
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:13,代码来源:ItemHammer.java

示例5: ItemWeaponMF

import net.minecraft.item.EnumToolMaterial; //导入方法依赖的package包/类
public ItemWeaponMF(int id, EnumToolMaterial material) 
{
	super(id, material);
	setCreativeTab(ItemListMF.tabWeapon);
	this.material = material;
	setMaxDamage((int)(material.getMaxUses() * getDurability()));
	
	this.baseDamage = (4 + material.getDamageVsEntity())* this.getDamageModifier();
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:10,代码来源:ItemWeaponMF.java

示例6: ItemHoundWeapon

import net.minecraft.item.EnumToolMaterial; //导入方法依赖的package包/类
/**
 * A forged Jaw Item. Fixed to head
 * @param id The item ID
 * @param material The material
 */
public ItemHoundWeapon(int id, EnumToolMaterial material)
{
    super(id);
    this.toolMaterial = material;
    this.maxStackSize = 1;
    this.setMaxDamage(material.getMaxUses()*2);
    this.setCreativeTab(CreativeTabs.tabCombat);
    this.weaponDamage = 4 + material.getDamageVsEntity();
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:15,代码来源:ItemHoundWeapon.java

示例7: WaterSword

import net.minecraft.item.EnumToolMaterial; //导入方法依赖的package包/类
public WaterSword(int ItemID, EnumToolMaterial material){
	super(ItemID, material);
	this.setCreativeTab(RunesAndSilver.tabRunesMod);
	this.toolMaterial = material;
	this.weaponDamage = 4.0F + material.getDamageVsEntity();
	this.setUnlocalizedName("WaterSword");
}
 
开发者ID:MinecraftModArchive,项目名称:Runes-And-Silver,代码行数:8,代码来源:WaterSword.java

示例8: ItemNileSword

import net.minecraft.item.EnumToolMaterial; //导入方法依赖的package包/类
public ItemNileSword(int par1, EnumToolMaterial par2EnumToolMaterial)
{
    super(par1);
    this.nileEssenceMaterial = par2EnumToolMaterial;
    this.maxStackSize = 1;
    this.setMaxDamage(par2EnumToolMaterial.getMaxUses());
    this.setCreativeTab(ZeroQuest.ZeroTab);
    this.weaponDamage = 5.0F + par2EnumToolMaterial.getDamageVsEntity();
}
 
开发者ID:NovaViper,项目名称:ZeroQuest,代码行数:10,代码来源:ItemNileSword.java

示例9: ItemDarkSword

import net.minecraft.item.EnumToolMaterial; //导入方法依赖的package包/类
public ItemDarkSword(int par1, EnumToolMaterial par2EnumToolMaterial)
{
    super(par1);
    this.darkEssenceMaterial = par2EnumToolMaterial;
    this.maxStackSize = 1;
    this.setMaxDamage(par2EnumToolMaterial.getMaxUses());
    this.setCreativeTab(ZeroQuest.ZeroTab);
    this.weaponDamage = 5.0F + par2EnumToolMaterial.getDamageVsEntity();
}
 
开发者ID:NovaViper,项目名称:ZeroQuest,代码行数:10,代码来源:ItemDarkSword.java

示例10: setToolMaterial

import net.minecraft.item.EnumToolMaterial; //导入方法依赖的package包/类
public void setToolMaterial(EnumToolMaterial stat)
{
	toolMaterial = stat;
	setMaxDamage(stat.getMaxUses());
	efficiencyOnProperMaterial = stat.getEfficiencyOnProperMaterial();
	damageVsEntity = 3 + stat.getDamageVsEntity();
}
 
开发者ID:Zerokyuuni,项目名称:Ex-Aliquo,代码行数:8,代码来源:AliquoHammer.java

示例11: ItemKnifeMF

import net.minecraft.item.EnumToolMaterial; //导入方法依赖的package包/类
public ItemKnifeMF(int id, EnumToolMaterial material) 
{
	this(id, material.getDamageVsEntity()+1F, material);
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:5,代码来源:ItemKnifeMF.java

示例12: setToolMaterial

import net.minecraft.item.EnumToolMaterial; //导入方法依赖的package包/类
public void setToolMaterial(EnumToolMaterial stat) {
	toolMaterial = stat;
	setMaxDamage(stat.getMaxUses());
	efficiencyOnProperMaterial = stat.getEfficiencyOnProperMaterial();
	damageVsEntity = 3 + stat.getDamageVsEntity();
}
 
开发者ID:Psioptic,项目名称:Ex-AliquoRedux,代码行数:7,代码来源:AliquoHammer.java


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