Package net.minecraft.entity
Enum SpawnReason
- java.lang.Object
-
- java.lang.Enum<SpawnReason>
-
- net.minecraft.entity.SpawnReason
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SpawnReason>
public enum SpawnReason extends java.lang.Enum<SpawnReason>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BREEDING
BUCKET
CHUNK_GENERATION
COMMAND
CONVERSION
DISPENSER
EVENT
JOCKEY
MOB_SUMMONED
NATURAL
PATROL
REINFORCEMENT
SPAWN_EGG
SPAWNER
STRUCTURE
TRIGGERED
-
Constructor Summary
Constructors Modifier Constructor Description private
SpawnReason()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpawnReason
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SpawnReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NATURAL
public static final SpawnReason NATURAL
-
CHUNK_GENERATION
public static final SpawnReason CHUNK_GENERATION
-
SPAWNER
public static final SpawnReason SPAWNER
-
STRUCTURE
public static final SpawnReason STRUCTURE
-
BREEDING
public static final SpawnReason BREEDING
-
MOB_SUMMONED
public static final SpawnReason MOB_SUMMONED
-
JOCKEY
public static final SpawnReason JOCKEY
-
EVENT
public static final SpawnReason EVENT
-
CONVERSION
public static final SpawnReason CONVERSION
-
REINFORCEMENT
public static final SpawnReason REINFORCEMENT
-
TRIGGERED
public static final SpawnReason TRIGGERED
-
BUCKET
public static final SpawnReason BUCKET
-
SPAWN_EGG
public static final SpawnReason SPAWN_EGG
-
COMMAND
public static final SpawnReason COMMAND
-
DISPENSER
public static final SpawnReason DISPENSER
-
PATROL
public static final SpawnReason PATROL
-
-
Method Detail
-
values
public static SpawnReason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SpawnReason c : SpawnReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpawnReason valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-