Enum Class ToolMaterials
- 所有已实现的接口:
Serializable,Comparable<ToolMaterials>,Constable,net.minecraft.item.ToolMaterial,pers.saikel0rado1iu.silk.api.ropestick.tool.Tool
public enum ToolMaterials
extends Enum<ToolMaterials>
implements pers.saikel0rado1iu.silk.api.ropestick.tool.Tool
工具材料类
自然更替的所有工具材料- 从以下版本开始:
- 1.0.0
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
枚举常量概要
枚举常量枚举常量说明金铜工具
基础属性在石制工具左右,但是拥有极致的附魔等级,附魔等级甚至比金高铜铁工具
基础属性只比铁制工具略高,但是拥有精铜工具的附魔等级精铜工具
基础属性在石制工具与铁制工具之间,但是拥有只比金低地附魔等级钢制工具
基础属性只比钻石工具略低,但挖掘等级还是铁,但是拥有铁质工具的附魔等级 -
字段概要
从接口继承的字段 pers.saikel0rado1iu.silk.api.ropestick.tool.Tool
BASE_DAMAGE, BASE_SPEED -
方法概要
修饰符和类型方法说明intintfloat获取材料伤害,即为ToolMaterial中的ToolMaterial.getAttackDamage()intfloatnet.minecraft.recipe.Ingredientstatic ToolMaterialsReturns the enum constant of this class with the specified name.static ToolMaterials[]values()Returns an array containing the constants of this enum class, in the order they are declared.从类继承的方法 java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf从接口继承的方法 pers.saikel0rado1iu.silk.api.ropestick.tool.Tool
createAxe, createHoe, createPickaxe, createShovel, createSword, getAttackDamage
-
枚举常量详细资料
-
REFINED_COPPER
精铜工具
基础属性在石制工具与铁制工具之间,但是拥有只比金低地附魔等级 -
CUFE
铜铁工具
基础属性只比铁制工具略高,但是拥有精铜工具的附魔等级 -
AUCU
金铜工具
基础属性在石制工具左右,但是拥有极致的附魔等级,附魔等级甚至比金高 -
STEEL
钢制工具
基础属性只比钻石工具略低,但挖掘等级还是铁,但是拥有铁质工具的附魔等级
-
-
方法详细资料
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- 返回:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- 如果参数为空值
-
getMaterialDamage
public float getMaterialDamage()获取材料伤害,即为ToolMaterial中的ToolMaterial.getAttackDamage()- 指定者:
getMaterialDamage在接口中pers.saikel0rado1iu.silk.api.ropestick.tool.Tool- 返回:
- 材料伤害
-
getDurability
public int getDurability()- 指定者:
getDurability在接口中net.minecraft.item.ToolMaterial
-
getMiningSpeedMultiplier
public float getMiningSpeedMultiplier()- 指定者:
getMiningSpeedMultiplier在接口中net.minecraft.item.ToolMaterial
-
getMiningLevel
public int getMiningLevel()- 指定者:
getMiningLevel在接口中net.minecraft.item.ToolMaterial
-
getEnchantability
public int getEnchantability()- 指定者:
getEnchantability在接口中net.minecraft.item.ToolMaterial
-
getRepairIngredient
public net.minecraft.recipe.Ingredient getRepairIngredient()- 指定者:
getRepairIngredient在接口中net.minecraft.item.ToolMaterial
-