Enum Class ToolMaterials

java.lang.Object
java.lang.Enum<ToolMaterials>
pers.saikel0rado1iu.spontaneousreplace.item.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
  • 方法概要

    修饰符和类型
    方法
    说明
    int
     
    int
     
    float
    获取材料伤害,即为 ToolMaterial 中的 ToolMaterial.getAttackDamage()
    int
     
    float
     
    net.minecraft.recipe.Ingredient
     
    Returns the enum constant of this class with the specified name.
    static ToolMaterials[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    从类继承的方法 java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    从接口继承的方法 pers.saikel0rado1iu.silk.api.ropestick.tool.Tool

    createAxe, createHoe, createPickaxe, createShovel, createSword, getAttackDamage
  • 枚举常量详细资料

    • REFINED_COPPER

      public static final ToolMaterials REFINED_COPPER
      精铜工具
      基础属性在石制工具与铁制工具之间,但是拥有只比金低地附魔等级
    • CUFE

      public static final ToolMaterials CUFE
      铜铁工具
      基础属性只比铁制工具略高,但是拥有精铜工具的附魔等级
    • AUCU

      public static final ToolMaterials AUCU
      金铜工具
      基础属性在石制工具左右,但是拥有极致的附魔等级,附魔等级甚至比金高
    • STEEL

      public static final ToolMaterials STEEL
      钢制工具
      基础属性只比钻石工具略低,但挖掘等级还是铁,但是拥有铁质工具的附魔等级
  • 方法详细资料

    • values

      public static ToolMaterials[] 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

      public static ToolMaterials valueOf(String name)
      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 name
      NullPointerException - 如果参数为空值
    • 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