Package net.minecraft.entity
Enum Class SpawnRestriction.Location
- All Implemented Interfaces:
Serializable,Comparable<SpawnRestriction.Location>,Constable
- Enclosing class:
SpawnRestriction
- Mappings:
Namespace Name official bca$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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpawnRestriction.LocationReturns the enum constant of this class with the specified name.static SpawnRestriction.Location[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ON_GROUND
- Mappings:
Namespace Name Mixin selector official aLbca$c;a:Lbca$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 bLbca$c;b:Lbca$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 cLbca$c;c:Lbca$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 dLbca$c;d:Lbca$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>Lbca$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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-