Enum Class SpawnRestriction.Location

java.lang.Object
java.lang.Enum<SpawnRestriction.Location>
net.minecraft.entity.SpawnRestriction.Location
All Implemented Interfaces:
Serializable, Comparable<SpawnRestriction.Location>, Constable
Enclosing class:
SpawnRestriction

public static enum SpawnRestriction.Location extends Enum<SpawnRestriction.Location>
Mappings:
Namespace Name
official aum$c
intermediary net/minecraft/class_1317$class_1319
named net/minecraft/entity/SpawnRestriction$Location
  • Enum Constant Details

    • ON_GROUND

      public static final SpawnRestriction.Location ON_GROUND
      Mappings:
      Namespace Name Mixin selector
      official a Laum$c;a:Laum$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

      public static final SpawnRestriction.Location IN_WATER
      Mappings:
      Namespace Name Mixin selector
      official b Laum$c;b:Laum$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

      public static final SpawnRestriction.Location NO_RESTRICTIONS
      Mappings:
      Namespace Name Mixin selector
      official c Laum$c;c:Laum$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

      public static final SpawnRestriction.Location IN_LAVA
      Mappings:
      Namespace Name Mixin selector
      official d Laum$c;d:Laum$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> Laum$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

      public static SpawnRestriction.Location[] 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

      public static SpawnRestriction.Location valueOf(String name)
      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 name
      NullPointerException - if the argument is null