Enum Class ExperienceOrb.SpawnReason
- All Implemented Interfaces:
- Enclosing interface:
public static enum ExperienceOrb.SpawnReason extends Enum<ExperienceOrb.SpawnReason>
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 SummaryEnum 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 TypeMethodDescription
static ExperienceOrb.SpawnReasonReturns the enum constant of this class with the specified name.
values()Returns an array containing the constants of this enum class, in the order they are declared.
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Enum Constant Details
PLAYER_DEATHpublic static final ExperienceOrb.SpawnReason PLAYER_DEATHSpawned by a player dying
ENTITY_DEATHpublic static final ExperienceOrb.SpawnReason ENTITY_DEATHSpawned by an entity dying after being damaged by a player
FURNACEpublic static final ExperienceOrb.SpawnReason FURNACESpawned by player using a furnace
BREEDpublic static final ExperienceOrb.SpawnReason BREEDSpawned by player breeding animals
VILLAGER_TRADEpublic static final ExperienceOrb.SpawnReason VILLAGER_TRADESpawned by player trading with a villager
FISHINGpublic static final ExperienceOrb.SpawnReason FISHINGSpawned by player fishing
BLOCK_BREAKpublic static final ExperienceOrb.SpawnReason BLOCK_BREAKSpawned by player breaking a block that gives experience points such as Diamond Ore
CUSTOMpublic static final ExperienceOrb.SpawnReason CUSTOMSpawned by Bukkit API
EXP_BOTTLEpublic static final ExperienceOrb.SpawnReason EXP_BOTTLESpawned by a player throwing an experience points bottle
GRINDSTONEpublic static final ExperienceOrb.SpawnReason GRINDSTONESpawned by a player using a grindstone
UNKNOWNpublic static final ExperienceOrb.SpawnReason UNKNOWNWe do not know why it was spawned
valuespublic static ExperienceOrb.SpawnReason values()Returns an array containing the constants of this enum class, in the order they are declared.
- an array containing the constants of this enum class, in the order they are declared
valueOfpublic static ExperienceOrb.SpawnReason 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.)
name- the name of the enum constant to be returned.
- the enum constant with the specified name
IllegalArgumentException- if this enum class has no constant with the specified name
NullPointerException- if the argument is null