枚举类 PathType

java.lang.Object
java.lang.Enum<PathType>
net.minecraft.world.level.pathfinder.PathType
所有已实现的接口:
Serializable, Comparable<PathType>, Constable, IExtensibleEnum

public enum PathType extends Enum<PathType> implements IExtensibleEnum
  • 枚举常量详细资料

    • BLOCKED

      public static final PathType BLOCKED
    • OPEN

      public static final PathType OPEN
    • WALKABLE

      public static final PathType WALKABLE
    • WALKABLE_DOOR

      public static final PathType WALKABLE_DOOR
    • TRAPDOOR

      public static final PathType TRAPDOOR
    • POWDER_SNOW

      public static final PathType POWDER_SNOW
    • DANGER_POWDER_SNOW

      public static final PathType DANGER_POWDER_SNOW
    • FENCE

      public static final PathType FENCE
    • LAVA

      public static final PathType LAVA
    • WATER

      public static final PathType WATER
    • WATER_BORDER

      public static final PathType WATER_BORDER
    • RAIL

      public static final PathType RAIL
    • UNPASSABLE_RAIL

      public static final PathType UNPASSABLE_RAIL
    • DANGER_FIRE

      public static final PathType DANGER_FIRE
    • DAMAGE_FIRE

      public static final PathType DAMAGE_FIRE
    • DANGER_OTHER

      public static final PathType DANGER_OTHER
    • DAMAGE_OTHER

      public static final PathType DAMAGE_OTHER
    • DOOR_OPEN

      public static final PathType DOOR_OPEN
    • DOOR_WOOD_CLOSED

      public static final PathType DOOR_WOOD_CLOSED
    • DOOR_IRON_CLOSED

      public static final PathType DOOR_IRON_CLOSED
    • BREACH

      public static final PathType BREACH
    • LEAVES

      public static final PathType LEAVES
    • STICKY_HONEY

      public static final PathType STICKY_HONEY
    • COCOA

      public static final PathType COCOA
    • DAMAGE_CAUTIOUS

      public static final PathType DAMAGE_CAUTIOUS
    • DANGER_TRAPDOOR

      public static final PathType DANGER_TRAPDOOR
  • 字段详细资料

    • malus

      private final float malus
  • 构造器详细资料

    • PathType

      private PathType(float p_332471_)
  • 方法详细资料

    • values

      public static PathType[] values()
      返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同
      返回:
      包含该枚举类的常量的数组,顺序与声明这些常量的顺序相同
    • valueOf

      public static PathType valueOf(String name)
      返回带有指定名称的该类的枚举常量。 字符串必须与用于声明该类的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果该枚举类没有带有指定名称的常量
      NullPointerException - 如果参数为空值
    • getMalus

      public float getMalus()
    • getDanger

      @Nullable public @Nullable PathType getDanger()
    • create

      public static PathType create(String name, float malus)