public static enum NpcSpawnEvent.Origin extends java.lang.Enum<NpcSpawnEvent.Origin>
| Enum Constant and Description |
|---|
Command
Npc was spawned via command
|
ItemDrop
Npc was "dropped" from the player inventory.
|
Natural
Natural npc spawn, i.e. npc spawns naturally in the world
|
| Modifier and Type | Method and Description |
|---|---|
static NpcSpawnEvent.Origin |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NpcSpawnEvent.Origin[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NpcSpawnEvent.Origin Natural
public static final NpcSpawnEvent.Origin ItemDrop
public static final NpcSpawnEvent.Origin Command
public static NpcSpawnEvent.Origin[] values()
for (NpcSpawnEvent.Origin c : NpcSpawnEvent.Origin.values()) System.out.println(c);
public static NpcSpawnEvent.Origin 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 null