Package net.minecraft.pathfinding
Enum PathNodeType
- java.lang.Object
-
- java.lang.Enum<PathNodeType>
-
- net.minecraft.pathfinding.PathNodeType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PathNodeType>
public enum PathNodeType extends java.lang.Enum<PathNodeType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCKED
BREACH
COCOA
DAMAGE_CACTUS
DAMAGE_FIRE
DAMAGE_OTHER
DANGER_CACTUS
DANGER_FIRE
DANGER_OTHER
DOOR_IRON_CLOSED
DOOR_OPEN
DOOR_WOOD_CLOSED
FENCE
LAVA
LEAVES
OPEN
RAIL
STICKY_HONEY
TRAPDOOR
UNPASSABLE_RAIL
WALKABLE
WALKABLE_DOOR
WATER
WATER_BORDER
-
Field Summary
Fields Modifier and Type Field Description private float
malus
-
Constructor Summary
Constructors Modifier Constructor Description private
PathNodeType(float p_i46653_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PathNodeType
getDanger()
float
getMalus()
static PathNodeType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PathNodeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLOCKED
public static final PathNodeType BLOCKED
-
OPEN
public static final PathNodeType OPEN
-
WALKABLE
public static final PathNodeType WALKABLE
-
WALKABLE_DOOR
public static final PathNodeType WALKABLE_DOOR
-
TRAPDOOR
public static final PathNodeType TRAPDOOR
-
FENCE
public static final PathNodeType FENCE
-
LAVA
public static final PathNodeType LAVA
-
WATER
public static final PathNodeType WATER
-
WATER_BORDER
public static final PathNodeType WATER_BORDER
-
RAIL
public static final PathNodeType RAIL
-
UNPASSABLE_RAIL
public static final PathNodeType UNPASSABLE_RAIL
-
DANGER_FIRE
public static final PathNodeType DANGER_FIRE
-
DAMAGE_FIRE
public static final PathNodeType DAMAGE_FIRE
-
DANGER_CACTUS
public static final PathNodeType DANGER_CACTUS
-
DAMAGE_CACTUS
public static final PathNodeType DAMAGE_CACTUS
-
DANGER_OTHER
public static final PathNodeType DANGER_OTHER
-
DAMAGE_OTHER
public static final PathNodeType DAMAGE_OTHER
-
DOOR_OPEN
public static final PathNodeType DOOR_OPEN
-
DOOR_WOOD_CLOSED
public static final PathNodeType DOOR_WOOD_CLOSED
-
DOOR_IRON_CLOSED
public static final PathNodeType DOOR_IRON_CLOSED
-
BREACH
public static final PathNodeType BREACH
-
LEAVES
public static final PathNodeType LEAVES
-
STICKY_HONEY
public static final PathNodeType STICKY_HONEY
-
COCOA
public static final PathNodeType COCOA
-
-
Method Detail
-
values
public static PathNodeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PathNodeType c : PathNodeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PathNodeType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getMalus
public float getMalus()
-
getDanger
@Nullable public PathNodeType getDanger()
-
-