Enum Class Npcs.Locomotion
- All Implemented Interfaces:
Serializable, Comparable<Npcs.Locomotion>, Constable
- Enclosing class:
Npcs
Determines the locomotion model of the npc (how it physically moves through the world)
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGround walking, but the npc can also climb walls and ceilings (spiders etc)Regular ground walking under world gravity (including surface swimming if canswim is set)Free 3D swimming inside the water volume (fish etc). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Npcs.Locomotionget(int value) static Npcs.LocomotionReturns the enum constant of this class with the specified name.static Npcs.Locomotion[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Ground
Regular ground walking under world gravity (including surface swimming if canswim is set) -
UnderwaterSwim
Free 3D swimming inside the water volume (fish etc). The npc never surfaces and never drowns -
Climb
Ground walking, but the npc can also climb walls and ceilings (spiders etc)
-
-
Field Details
-
value
public final int value
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
get
-