Enum Class Npcs.Locomotion

java.lang.Object
java.lang.Enum<Npcs.Locomotion>
net.risingworld.api.definitions.Npcs.Locomotion
All Implemented Interfaces:
Serializable, Comparable<Npcs.Locomotion>, Constable
Enclosing class:
Npcs

public static enum Npcs.Locomotion extends Enum<Npcs.Locomotion>
Determines the locomotion model of the npc (how it physically moves through the world)
  • Enum Constant Details

    • Ground

      public static final Npcs.Locomotion Ground
      Regular ground walking under world gravity (including surface swimming if canswim is set)
    • UnderwaterSwim

      public static final Npcs.Locomotion UnderwaterSwim
      Free 3D swimming inside the water volume (fish etc). The npc never surfaces and never drowns
    • Climb

      public static final Npcs.Locomotion Climb
      Ground walking, but the npc can also climb walls and ceilings (spiders etc)
  • Field Details

    • value

      public final int value
  • Method Details

    • values

      public static Npcs.Locomotion[] 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 Npcs.Locomotion 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
    • get

      public static Npcs.Locomotion get(int value)