Enum Class PathType

java.lang.Object
java.lang.Enum<PathType>
net.minecraft.world.level.pathfinder.PathType
All Implemented Interfaces:
Serializable, Comparable<PathType>, Constable

public enum PathType extends Enum<PathType>
  • Enum Constant Details

    • 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
  • Field Details

    • malus

      private final float malus
  • Constructor Details

    • PathType

      private PathType(float malus)
  • Method Details

    • values

      public static PathType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PathType 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.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getMalus

      public float getMalus()