Package org.bukkit.entity
Enum Class ExperienceOrb.SpawnReason
- All Implemented Interfaces:
Serializable
,Comparable<ExperienceOrb.SpawnReason>
,Constable
- Enclosing interface:
- ExperienceOrb
Reasons for why this Experience Orb was spawned
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSpawned by player breaking a block that gives experience points such as Diamond OreSpawned by player breeding animalsSpawned by Bukkit APISpawned by an entity dying after being damaged by a playerSpawned by a player throwing an experience points bottleSpawned by player fishingSpawned by player using a furnaceSpawned by a player using a grindstoneSpawned by a player dyingWe do not know why it was spawnedSpawned by player trading with a villager -
Method Summary
Modifier and TypeMethodDescriptionstatic ExperienceOrb.SpawnReason
Returns the enum constant of this class with the specified name.static ExperienceOrb.SpawnReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAYER_DEATH
Spawned by a player dying -
ENTITY_DEATH
Spawned by an entity dying after being damaged by a player -
FURNACE
Spawned by player using a furnace -
BREED
Spawned by player breeding animals -
VILLAGER_TRADE
Spawned by player trading with a villager -
FISHING
Spawned by player fishing -
BLOCK_BREAK
Spawned by player breaking a block that gives experience points such as Diamond Ore -
CUSTOM
Spawned by Bukkit API -
EXP_BOTTLE
Spawned by a player throwing an experience points bottle -
GRINDSTONE
Spawned by a player using a grindstone -
UNKNOWN
We do not know why it was spawned
-
-
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
-