java.io.Serializable, java.lang.Comparable<ExperienceOrb.SpawnReason>public static enum ExperienceOrb.SpawnReason extends java.lang.Enum<ExperienceOrb.SpawnReason>
| Enum Constant | Description | 
|---|---|
| BLOCK_BREAK | Spawned by player breaking a block that gives experience points such as Diamond Ore | 
| BREED | Spawned by player breeding animals | 
| CUSTOM | Spawned by Bukkit API | 
| ENTITY_DEATH | Spawned by an entity dying after being damaged by a player | 
| EXP_BOTTLE | Spawned by a player throwing an experience points bottle | 
| FISHING | Spawned by player fishing | 
| FURNACE | Spawned by player using a furnace | 
| PLAYER_DEATH | Spawned by a player dying | 
| UNKNOWN | We do not know why it was spawned | 
| VILLAGER_TRADE | Spawned by player trading with a villager | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static ExperienceOrb.SpawnReason | valueOf(java.lang.String name) | Returns the enum constant of this type with the specified name. | 
| static ExperienceOrb.SpawnReason[] | values() | Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final ExperienceOrb.SpawnReason PLAYER_DEATH
public static final ExperienceOrb.SpawnReason ENTITY_DEATH
public static final ExperienceOrb.SpawnReason FURNACE
public static final ExperienceOrb.SpawnReason BREED
public static final ExperienceOrb.SpawnReason VILLAGER_TRADE
public static final ExperienceOrb.SpawnReason FISHING
public static final ExperienceOrb.SpawnReason BLOCK_BREAK
public static final ExperienceOrb.SpawnReason CUSTOM
public static final ExperienceOrb.SpawnReason EXP_BOTTLE
public static final ExperienceOrb.SpawnReason UNKNOWN
public static ExperienceOrb.SpawnReason[] values()
for (ExperienceOrb.SpawnReason c : ExperienceOrb.SpawnReason.values()) System.out.println(c);
public static ExperienceOrb.SpawnReason valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2018. All rights reserved.