本文整理匯總了Java中net.minecraft.item.EnumToolMaterial.getEfficiencyOnProperMaterial方法的典型用法代碼示例。如果您正苦於以下問題:Java EnumToolMaterial.getEfficiencyOnProperMaterial方法的具體用法?Java EnumToolMaterial.getEfficiencyOnProperMaterial怎麽用?Java EnumToolMaterial.getEfficiencyOnProperMaterial使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類net.minecraft.item.EnumToolMaterial
的用法示例。
在下文中一共展示了EnumToolMaterial.getEfficiencyOnProperMaterial方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: ItemMallet
import net.minecraft.item.EnumToolMaterial; //導入方法依賴的package包/類
public ItemMallet(int i, EnumToolMaterial mat) {
super(i, mat.getEfficiencyOnProperMaterial(), mat, new Block[]{});
this.material = mat;
this.setMaxStackSize(1);
this.setMaxDamage(mat.getMaxUses()*4);
this.setCreativeTab(ItemListMF.tabTool);
maxStackSize = 1;
}
示例2: 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();
}
示例3: ItemShearsMF
import net.minecraft.item.EnumToolMaterial; //導入方法依賴的package包/類
public ItemShearsMF(int id, EnumToolMaterial material) {
super(id);
this.setFull3D();
setMaxDamage(material.getMaxUses());
quality = material.getEfficiencyOnProperMaterial();
this.material = material;
}
示例4: ItemNeedle
import net.minecraft.item.EnumToolMaterial; //導入方法依賴的package包/類
public ItemNeedle(int id, EnumToolMaterial material)
{
super(id);
setMaxStackSize(1);
setCreativeTab(ItemListMF.tabTailor);
setMaxDamage(material.getMaxUses()*4);
efficiency = material.getEfficiencyOnProperMaterial();
tier = material.getHarvestLevel();
}
示例5: ItemHandpick
import net.minecraft.item.EnumToolMaterial; //導入方法依賴的package包/類
/** an array of the blocks this pickaxe is effective against */
public ItemHandpick(int id, EnumToolMaterial material)
{
super(id, material);
MinecraftForge.setToolClass(this, "pickaxe", material.getHarvestLevel());
setCreativeTab(ItemListMF.tabTool);
this.setMaxDamage((int) (material.getMaxUses() * 0.5F) );
this.efficiencyOnProperMaterial = material.getEfficiencyOnProperMaterial() * 0.5F;
}
示例6: ItemKnifeMF
import net.minecraft.item.EnumToolMaterial; //導入方法依賴的package包/類
public ItemKnifeMF(int id, float dam, EnumToolMaterial material)
{
super(id, material.getEfficiencyOnProperMaterial(), material, new Block[]{});
quality = material.getEfficiencyOnProperMaterial();
damageVsEntity = dam;
setCreativeTab(ItemListMF.tabTool);
}
示例7: ItemMattock
import net.minecraft.item.EnumToolMaterial; //導入方法依賴的package包/類
public ItemMattock(int id, EnumToolMaterial material)
{
super(id);
toolMaterial = material;
setMaxDamage(material.getMaxUses()*2);
this.efficiencyOnProperMaterial = material.getEfficiencyOnProperMaterial()*0.5F;
MinecraftForge.setToolClass(this, "pickaxe", material.getHarvestLevel());
}
示例8: 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;
}
示例9: ItemWarpick
import net.minecraft.item.EnumToolMaterial; //導入方法依賴的package包/類
public ItemWarpick(int id, EnumToolMaterial material)
{
super(id, material);
DecimalFormat decimal_format = new DecimalFormat("#.#");
APdamage = baseDamage*getAPPercent();
if(!(this instanceof ItemWarhammer))
{
this.efficiencyOnProperMaterial = material.getEfficiencyOnProperMaterial()*0.75F;
MinecraftForge.setToolClass(this, "pickaxe", material.getHarvestLevel());
}
}
示例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();
}
示例11: setToolMaterial
import net.minecraft.item.EnumToolMaterial; //導入方法依賴的package包/類
public void setToolMaterial(EnumToolMaterial stat) {
toolMaterial = stat;
setMaxDamage(stat.getMaxUses());
efficiencyOnProperMaterial = stat.getEfficiencyOnProperMaterial();
damageVsEntity = 3 + stat.getDamageVsEntity();
}