當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。