Enum Class PlayerInventoryAddItemEvent.Origin
java.lang.Object
java.lang.Enum<PlayerInventoryAddItemEvent.Origin>
net.risingworld.api.events.player.inventory.PlayerInventoryAddItemEvent.Origin
- All Implemented Interfaces:
Serializable
,Comparable<PlayerInventoryAddItemEvent.Origin>
,Constable
- Enclosing class:
PlayerInventoryAddItemEvent
public static enum PlayerInventoryAddItemEvent.Origin
extends Enum<PlayerInventoryAddItemEvent.Origin>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionItem was added to the inventory through the Plugin APIPlayer opened a bag which contained this itemPlayer takes off his clothes, so the garment went back to the inventoryPlayer got the item from a dead body (player or npc)The item was crafted by the playerPlayer received the item by deconstructing blocks or objects (e.g furniture)Player received the item while digging (e.g ores, stone etc.)Item was duplicated in creative modePlayer obtained this item from fishingPlayer received the item by harvesting plants, cutting grass etc.Regular item pickup, i.e item was picked up from groundThe item was spawned via commandPlayer received the item from trading with another playerUnknown item origin -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static PlayerInventoryAddItemEvent.Origin[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Unknown
Unknown item origin -
Pickup
Regular item pickup, i.e item was picked up from ground -
Spawn
The item was spawned via command -
API
Item was added to the inventory through the Plugin API -
Craft
The item was crafted by the player -
Dig
Player received the item while digging (e.g ores, stone etc.) -
Deconstruct
Player received the item by deconstructing blocks or objects (e.g furniture) -
Harvest
Player received the item by harvesting plants, cutting grass etc. -
Fishing
Player obtained this item from fishing -
Trade
Player received the item from trading with another player -
Corpse
Player got the item from a dead body (player or npc) -
Clothing
Player takes off his clothes, so the garment went back to the inventory -
Bag
Player opened a bag which contained this item -
Duplicate
Item was duplicated in creative mode
-
-
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
-