Enum Class Npcs.LootType

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

public static enum Npcs.LootType extends Enum<Npcs.LootType>
  • Enum Constant Details

    • None

      public static final Npcs.LootType None
      Npc it not lootable
    • Inventory

      public static final Npcs.LootType Inventory
      Npc corpse has a lootable inventory
    • Skinning

      public static final Npcs.LootType Skinning
      Npc needs to be skinned with a knife first in order to drop the loot
    • Drop

      public static final Npcs.LootType Drop
      Npc drops the loot upon death
    • Interaction

      public static final Npcs.LootType Interaction
      Loot can be gathered by interacting with the npc
  • Field Details

    • value

      public final int value
  • Method Details

    • values

      public static Npcs.LootType[] 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.LootType 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.LootType get(int value)