public static enum ExperienceOrb.SpawnReason extends Enum<ExperienceOrb.SpawnReason>
Enum Constant and 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
|
GRINDSTONE
Spawned by a player using a grindstone
|
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 and Description |
---|---|
static ExperienceOrb.SpawnReason |
valueOf(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 GRINDSTONE
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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2022. All rights reserved.