Enum Class NpcSpawnEvent.Origin

java.lang.Object
java.lang.Enum<NpcSpawnEvent.Origin>
net.risingworld.api.events.npc.NpcSpawnEvent.Origin
All Implemented Interfaces:
Serializable, Comparable<NpcSpawnEvent.Origin>, Constable
Enclosing class:
NpcSpawnEvent

public static enum NpcSpawnEvent.Origin extends Enum<NpcSpawnEvent.Origin>
  • Enum Constant Details

    • Natural

      public static final NpcSpawnEvent.Origin Natural
      Natural npc spawn, i.e npc spawns naturally in the world
    • ItemDrop

      public static final NpcSpawnEvent.Origin ItemDrop
      Npc was "dropped" from the player inventory. Usually this applies to small npc, like earthworms
    • Command

      public static final NpcSpawnEvent.Origin Command
      Npc was spawned via command
    • API

      public static final NpcSpawnEvent.Origin API
      Npc was spawned through the API
  • Method Details

    • values

      public static NpcSpawnEvent.Origin[] 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 NpcSpawnEvent.Origin 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