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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryModifier and TypeMethodDescriptionstatic ExperienceOrb.SpawnReasonReturns 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_DEATHSpawned by a player dying
- 
ENTITY_DEATHSpawned by an entity dying after being damaged by a player
- 
FURNACESpawned by player using a furnace
- 
BREEDSpawned by player breeding animals
- 
VILLAGER_TRADESpawned by player trading with a villager
- 
FISHINGSpawned by player fishing
- 
BLOCK_BREAKSpawned by player breaking a block that gives experience points such as Diamond Ore
- 
CUSTOMSpawned by Bukkit API
- 
EXP_BOTTLESpawned by a player throwing an experience points bottle
- 
GRINDSTONESpawned by a player using a grindstone
- 
UNKNOWNWe do not know why it was spawned
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
 
-