Package net.minecraft.entity
Enum SpawnRestriction.Location
- All Implemented Interfaces:
Serializable
,Comparable<SpawnRestriction.Location>
,java.lang.constant.Constable
- Enclosing class:
- SpawnRestriction
public static enum SpawnRestriction.Location extends Enum<SpawnRestriction.Location>
- Mappings:
Namespace Name official asa$c
intermediary net/minecraft/class_1317$class_1319
named net/minecraft/entity/SpawnRestriction$Location
-
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 IN_LAVA
IN_WATER
NO_RESTRICTIONS
ON_GROUND
-
Constructor Summary
Constructors Modifier Constructor Description private
Location()
-
Method Summary
Modifier and Type Method Description static SpawnRestriction.Location
valueOf(String name)
Returns the enum constant of this type with the specified name.static SpawnRestriction.Location[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ON_GROUND
- Mappings:
Namespace Name Mixin selector official a
Lasa$c;a:Lasa$c;
intermediary field_6317
Lnet/minecraft/class_1317$class_1319;field_6317:Lnet/minecraft/class_1317$class_1319;
named ON_GROUND
Lnet/minecraft/entity/SpawnRestriction$Location;ON_GROUND:Lnet/minecraft/entity/SpawnRestriction$Location;
-
IN_WATER
- Mappings:
Namespace Name Mixin selector official b
Lasa$c;b:Lasa$c;
intermediary field_6318
Lnet/minecraft/class_1317$class_1319;field_6318:Lnet/minecraft/class_1317$class_1319;
named IN_WATER
Lnet/minecraft/entity/SpawnRestriction$Location;IN_WATER:Lnet/minecraft/entity/SpawnRestriction$Location;
-
NO_RESTRICTIONS
- Mappings:
Namespace Name Mixin selector official c
Lasa$c;c:Lasa$c;
intermediary field_19350
Lnet/minecraft/class_1317$class_1319;field_19350:Lnet/minecraft/class_1317$class_1319;
named NO_RESTRICTIONS
Lnet/minecraft/entity/SpawnRestriction$Location;NO_RESTRICTIONS:Lnet/minecraft/entity/SpawnRestriction$Location;
-
IN_LAVA
- Mappings:
Namespace Name Mixin selector official d
Lasa$c;d:Lasa$c;
intermediary field_23221
Lnet/minecraft/class_1317$class_1319;field_23221:Lnet/minecraft/class_1317$class_1319;
named IN_LAVA
Lnet/minecraft/entity/SpawnRestriction$Location;IN_LAVA:Lnet/minecraft/entity/SpawnRestriction$Location;
-
-
Constructor Details
-
Location
private Location()- Mappings:
Namespace Name Mixin selector official <init>
Lasa$c;<init>(Ljava/lang/String;I)V
intermediary <init>
Lnet/minecraft/class_1317$class_1319;<init>(Ljava/lang/String;I)V
named <init>
Lnet/minecraft/entity/SpawnRestriction$Location;<init>(Ljava/lang/String;I)V
-
-
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
-