Package net.risingworld.api.definitions
Enum Class Npcs.LootType
- All Implemented Interfaces:
Serializable
,Comparable<Npcs.LootType>
,Constable
- Enclosing class:
Npcs
Enum containing the loot types of the npc, i.e how it can be looted specifically
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionNpc drops the loot upon deathLoot can be gathered by interacting with the npcNpc corpse has a lootable inventoryNpc it not lootableNpc needs to be skinned with a knife first in order to drop the loot -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Npcs.LootType
get
(int value) static Npcs.LootType
Returns the enum constant of this class with the specified name.static Npcs.LootType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
Npc it not lootable -
Inventory
Npc corpse has a lootable inventory -
Skinning
Npc needs to be skinned with a knife first in order to drop the loot -
Drop
Npc drops the loot upon death -
Interaction
Loot can be gathered by interacting with the npc
-
-
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
-