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$cintermediary net/minecraft/class_1317$class_1319named 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_LAVAIN_WATERNO_RESTRICTIONSON_GROUND -
Constructor Summary
Constructors Modifier Constructor Description privateLocation() -
Method Summary
Modifier and Type Method Description static SpawnRestriction.LocationvalueOf(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 aLasa$c;a:Lasa$c;intermediary field_6317Lnet/minecraft/class_1317$class_1319;field_6317:Lnet/minecraft/class_1317$class_1319;named ON_GROUNDLnet/minecraft/entity/SpawnRestriction$Location;ON_GROUND:Lnet/minecraft/entity/SpawnRestriction$Location;
-
IN_WATER
- Mappings:
Namespace Name Mixin selector official bLasa$c;b:Lasa$c;intermediary field_6318Lnet/minecraft/class_1317$class_1319;field_6318:Lnet/minecraft/class_1317$class_1319;named IN_WATERLnet/minecraft/entity/SpawnRestriction$Location;IN_WATER:Lnet/minecraft/entity/SpawnRestriction$Location;
-
NO_RESTRICTIONS
- Mappings:
Namespace Name Mixin selector official cLasa$c;c:Lasa$c;intermediary field_19350Lnet/minecraft/class_1317$class_1319;field_19350:Lnet/minecraft/class_1317$class_1319;named NO_RESTRICTIONSLnet/minecraft/entity/SpawnRestriction$Location;NO_RESTRICTIONS:Lnet/minecraft/entity/SpawnRestriction$Location;
-
IN_LAVA
- Mappings:
Namespace Name Mixin selector official dLasa$c;d:Lasa$c;intermediary field_23221Lnet/minecraft/class_1317$class_1319;field_23221:Lnet/minecraft/class_1317$class_1319;named IN_LAVALnet/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)Vintermediary <init>Lnet/minecraft/class_1317$class_1319;<init>(Ljava/lang/String;I)Vnamed <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
-