Package net.minecraft.entity
Enum SpawnReason
- All Implemented Interfaces:
Serializable,Comparable<SpawnReason>,java.lang.constant.Constable
public enum SpawnReason extends Enum<SpawnReason>
- Mappings:
Namespace Name official arlintermediary net/minecraft/class_3730named net/minecraft/entity/SpawnReason
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description BREEDINGBUCKETCHUNK_GENERATIONCOMMANDCONVERSIONDISPENSEREVENTJOCKEYMOB_SUMMONEDNATURALPATROLREINFORCEMENTSPAWN_EGGSPAWNERSTRUCTURETRIGGERED -
Constructor Summary
Constructors Modifier Constructor Description privateSpawnReason() -
Method Summary
Modifier and Type Method Description static SpawnReasonvalueOf(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 Details
-
NATURAL
- Mappings:
Namespace Name Mixin selector official aLarl;a:Larl;intermediary field_16459Lnet/minecraft/class_3730;field_16459:Lnet/minecraft/class_3730;named NATURALLnet/minecraft/entity/SpawnReason;NATURAL:Lnet/minecraft/entity/SpawnReason;
-
CHUNK_GENERATION
- Mappings:
Namespace Name Mixin selector official bLarl;b:Larl;intermediary field_16472Lnet/minecraft/class_3730;field_16472:Lnet/minecraft/class_3730;named CHUNK_GENERATIONLnet/minecraft/entity/SpawnReason;CHUNK_GENERATION:Lnet/minecraft/entity/SpawnReason;
-
SPAWNER
- Mappings:
Namespace Name Mixin selector official cLarl;c:Larl;intermediary field_16469Lnet/minecraft/class_3730;field_16469:Lnet/minecraft/class_3730;named SPAWNERLnet/minecraft/entity/SpawnReason;SPAWNER:Lnet/minecraft/entity/SpawnReason;
-
STRUCTURE
- Mappings:
Namespace Name Mixin selector official dLarl;d:Larl;intermediary field_16474Lnet/minecraft/class_3730;field_16474:Lnet/minecraft/class_3730;named STRUCTURELnet/minecraft/entity/SpawnReason;STRUCTURE:Lnet/minecraft/entity/SpawnReason;
-
BREEDING
- Mappings:
Namespace Name Mixin selector official eLarl;e:Larl;intermediary field_16466Lnet/minecraft/class_3730;field_16466:Lnet/minecraft/class_3730;named BREEDINGLnet/minecraft/entity/SpawnReason;BREEDING:Lnet/minecraft/entity/SpawnReason;
-
MOB_SUMMONED
- Mappings:
Namespace Name Mixin selector official fLarl;f:Larl;intermediary field_16471Lnet/minecraft/class_3730;field_16471:Lnet/minecraft/class_3730;named MOB_SUMMONEDLnet/minecraft/entity/SpawnReason;MOB_SUMMONED:Lnet/minecraft/entity/SpawnReason;
-
JOCKEY
- Mappings:
Namespace Name Mixin selector official gLarl;g:Larl;intermediary field_16460Lnet/minecraft/class_3730;field_16460:Lnet/minecraft/class_3730;named JOCKEYLnet/minecraft/entity/SpawnReason;JOCKEY:Lnet/minecraft/entity/SpawnReason;
-
EVENT
- Mappings:
Namespace Name Mixin selector official hLarl;h:Larl;intermediary field_16467Lnet/minecraft/class_3730;field_16467:Lnet/minecraft/class_3730;named EVENTLnet/minecraft/entity/SpawnReason;EVENT:Lnet/minecraft/entity/SpawnReason;
-
CONVERSION
- Mappings:
Namespace Name Mixin selector official iLarl;i:Larl;intermediary field_16468Lnet/minecraft/class_3730;field_16468:Lnet/minecraft/class_3730;named CONVERSIONLnet/minecraft/entity/SpawnReason;CONVERSION:Lnet/minecraft/entity/SpawnReason;
-
REINFORCEMENT
- Mappings:
Namespace Name Mixin selector official jLarl;j:Larl;intermediary field_16463Lnet/minecraft/class_3730;field_16463:Lnet/minecraft/class_3730;named REINFORCEMENTLnet/minecraft/entity/SpawnReason;REINFORCEMENT:Lnet/minecraft/entity/SpawnReason;
-
TRIGGERED
- Mappings:
Namespace Name Mixin selector official kLarl;k:Larl;intermediary field_16461Lnet/minecraft/class_3730;field_16461:Lnet/minecraft/class_3730;named TRIGGEREDLnet/minecraft/entity/SpawnReason;TRIGGERED:Lnet/minecraft/entity/SpawnReason;
-
BUCKET
- Mappings:
Namespace Name Mixin selector official lLarl;l:Larl;intermediary field_16473Lnet/minecraft/class_3730;field_16473:Lnet/minecraft/class_3730;named BUCKETLnet/minecraft/entity/SpawnReason;BUCKET:Lnet/minecraft/entity/SpawnReason;
-
SPAWN_EGG
- Mappings:
Namespace Name Mixin selector official mLarl;m:Larl;intermediary field_16465Lnet/minecraft/class_3730;field_16465:Lnet/minecraft/class_3730;named SPAWN_EGGLnet/minecraft/entity/SpawnReason;SPAWN_EGG:Lnet/minecraft/entity/SpawnReason;
-
COMMAND
- Mappings:
Namespace Name Mixin selector official nLarl;n:Larl;intermediary field_16462Lnet/minecraft/class_3730;field_16462:Lnet/minecraft/class_3730;named COMMANDLnet/minecraft/entity/SpawnReason;COMMAND:Lnet/minecraft/entity/SpawnReason;
-
DISPENSER
- Mappings:
Namespace Name Mixin selector official oLarl;o:Larl;intermediary field_16470Lnet/minecraft/class_3730;field_16470:Lnet/minecraft/class_3730;named DISPENSERLnet/minecraft/entity/SpawnReason;DISPENSER:Lnet/minecraft/entity/SpawnReason;
-
PATROL
- Mappings:
Namespace Name Mixin selector official pLarl;p:Larl;intermediary field_16527Lnet/minecraft/class_3730;field_16527:Lnet/minecraft/class_3730;named PATROLLnet/minecraft/entity/SpawnReason;PATROL:Lnet/minecraft/entity/SpawnReason;
-
-
Constructor Details
-
SpawnReason
private SpawnReason()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-