Enum SpawnGroup

java.lang.Object
java.lang.Enum<SpawnGroup>
net.minecraft.entity.SpawnGroup
All Implemented Interfaces:
Serializable, Comparable<SpawnGroup>, java.lang.constant.Constable, StringIdentifiable

public enum SpawnGroup
extends Enum<SpawnGroup>
implements StringIdentifiable
Mappings:
Namespace Name
official ark
intermediary net/minecraft/class_1311
named net/minecraft/entity/SpawnGroup
  • Enum Constant Details

    • MONSTER

      public static final SpawnGroup MONSTER
      Mappings:
      Namespace Name Mixin selector
      official a Lark;a:Lark;
      intermediary field_6302 Lnet/minecraft/class_1311;field_6302:Lnet/minecraft/class_1311;
      named MONSTER Lnet/minecraft/entity/SpawnGroup;MONSTER:Lnet/minecraft/entity/SpawnGroup;
    • CREATURE

      public static final SpawnGroup CREATURE
      Mappings:
      Namespace Name Mixin selector
      official b Lark;b:Lark;
      intermediary field_6294 Lnet/minecraft/class_1311;field_6294:Lnet/minecraft/class_1311;
      named CREATURE Lnet/minecraft/entity/SpawnGroup;CREATURE:Lnet/minecraft/entity/SpawnGroup;
    • AMBIENT

      public static final SpawnGroup AMBIENT
      Mappings:
      Namespace Name Mixin selector
      official c Lark;c:Lark;
      intermediary field_6303 Lnet/minecraft/class_1311;field_6303:Lnet/minecraft/class_1311;
      named AMBIENT Lnet/minecraft/entity/SpawnGroup;AMBIENT:Lnet/minecraft/entity/SpawnGroup;
    • WATER_CREATURE

      public static final SpawnGroup WATER_CREATURE
      Mappings:
      Namespace Name Mixin selector
      official d Lark;d:Lark;
      intermediary field_6300 Lnet/minecraft/class_1311;field_6300:Lnet/minecraft/class_1311;
      named WATER_CREATURE Lnet/minecraft/entity/SpawnGroup;WATER_CREATURE:Lnet/minecraft/entity/SpawnGroup;
    • WATER_AMBIENT

      public static final SpawnGroup WATER_AMBIENT
      Mappings:
      Namespace Name Mixin selector
      official e Lark;e:Lark;
      intermediary field_24460 Lnet/minecraft/class_1311;field_24460:Lnet/minecraft/class_1311;
      named WATER_AMBIENT Lnet/minecraft/entity/SpawnGroup;WATER_AMBIENT:Lnet/minecraft/entity/SpawnGroup;
    • MISC

      public static final SpawnGroup MISC
      Mappings:
      Namespace Name Mixin selector
      official f Lark;f:Lark;
      intermediary field_17715 Lnet/minecraft/class_1311;field_17715:Lnet/minecraft/class_1311;
      named MISC Lnet/minecraft/entity/SpawnGroup;MISC:Lnet/minecraft/entity/SpawnGroup;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<SpawnGroup> CODEC
      Mappings:
      Namespace Name Mixin selector
      official g Lark;g:Lcom/mojang/serialization/Codec;
      intermediary field_24655 Lnet/minecraft/class_1311;field_24655:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/entity/SpawnGroup;CODEC:Lcom/mojang/serialization/Codec;
    • BY_NAME

      private static final Map<String,​SpawnGroup> BY_NAME
      Mappings:
      Namespace Name Mixin selector
      official h Lark;h:Ljava/util/Map;
      intermediary field_6296 Lnet/minecraft/class_1311;field_6296:Ljava/util/Map;
      named BY_NAME Lnet/minecraft/entity/SpawnGroup;BY_NAME:Ljava/util/Map;
    • capacity

      private final int capacity
      Mappings:
      Namespace Name Mixin selector
      official i Lark;i:I
      intermediary field_6297 Lnet/minecraft/class_1311;field_6297:I
      named capacity Lnet/minecraft/entity/SpawnGroup;capacity:I
    • peaceful

      private final boolean peaceful
      Mappings:
      Namespace Name Mixin selector
      official j Lark;j:Z
      intermediary field_6298 Lnet/minecraft/class_1311;field_6298:Z
      named peaceful Lnet/minecraft/entity/SpawnGroup;peaceful:Z
    • animal

      private final boolean animal
      Mappings:
      Namespace Name Mixin selector
      official k Lark;k:Z
      intermediary field_6295 Lnet/minecraft/class_1311;field_6295:Z
      named animal Lnet/minecraft/entity/SpawnGroup;animal:Z
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official l Lark;l:Ljava/lang/String;
      intermediary field_6304 Lnet/minecraft/class_1311;field_6304:Ljava/lang/String;
      named name Lnet/minecraft/entity/SpawnGroup;name:Ljava/lang/String;
    • despawnStartRange

      private final int despawnStartRange
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official m Lark;m:I
      intermediary field_24461 Lnet/minecraft/class_1311;field_24461:I
      named despawnStartRange Lnet/minecraft/entity/SpawnGroup;despawnStartRange:I
    • immediateDespawnRange

      private final int immediateDespawnRange
      Mappings:
      Namespace Name Mixin selector
      official n Lark;n:I
      intermediary field_24462 Lnet/minecraft/class_1311;field_24462:I
      named immediateDespawnRange Lnet/minecraft/entity/SpawnGroup;immediateDespawnRange:I
  • Constructor Details

    • SpawnGroup

      private SpawnGroup​(String name, int spawnCap, boolean peaceful, boolean animal, int immediateDespawnRange)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lark;<init>(Ljava/lang/String;ILjava/lang/String;IZZI)V
      intermediary <init> Lnet/minecraft/class_1311;<init>(Ljava/lang/String;ILjava/lang/String;IZZI)V
      named <init> Lnet/minecraft/entity/SpawnGroup;<init>(Ljava/lang/String;ILjava/lang/String;IZZI)V
  • Method Details

    • values

      public static SpawnGroup[] 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

      public static SpawnGroup valueOf​(String name)
      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 name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official b Lark;b()Ljava/lang/String;
      intermediary method_6133 Lnet/minecraft/class_1311;method_6133()Ljava/lang/String;
      named getName Lnet/minecraft/entity/SpawnGroup;getName()Ljava/lang/String;
    • asString

      public String asString()
      Specified by:
      asString in interface StringIdentifiable
      Mappings:
      Namespace Name Mixin selector
      official a Lagi;a()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
    • byName

      public static SpawnGroup byName​(String name)
      Mappings:
      Namespace Name Mixin selector
      official a Lark;a(Ljava/lang/String;)Lark;
      intermediary method_28307 Lnet/minecraft/class_1311;method_28307(Ljava/lang/String;)Lnet/minecraft/class_1311;
      named byName Lnet/minecraft/entity/SpawnGroup;byName(Ljava/lang/String;)Lnet/minecraft/entity/SpawnGroup;
    • getCapacity

      public int getCapacity()
      Mappings:
      Namespace Name Mixin selector
      official c Lark;c()I
      intermediary method_6134 Lnet/minecraft/class_1311;method_6134()I
      named getCapacity Lnet/minecraft/entity/SpawnGroup;getCapacity()I
    • isPeaceful

      public boolean isPeaceful()
      Mappings:
      Namespace Name Mixin selector
      official d Lark;d()Z
      intermediary method_6136 Lnet/minecraft/class_1311;method_6136()Z
      named isPeaceful Lnet/minecraft/entity/SpawnGroup;isPeaceful()Z
    • isAnimal

      public boolean isAnimal()
      Mappings:
      Namespace Name Mixin selector
      official e Lark;e()Z
      intermediary method_6135 Lnet/minecraft/class_1311;method_6135()Z
      named isAnimal Lnet/minecraft/entity/SpawnGroup;isAnimal()Z
    • getImmediateDespawnRange

      public int getImmediateDespawnRange()
      Mappings:
      Namespace Name Mixin selector
      official f Lark;f()I
      intermediary method_27919 Lnet/minecraft/class_1311;method_27919()I
      named getImmediateDespawnRange Lnet/minecraft/entity/SpawnGroup;getImmediateDespawnRange()I
    • getDespawnStartRange

      public int getDespawnStartRange()
      Mappings:
      Namespace Name Mixin selector
      official g Lark;g()I
      intermediary method_27920 Lnet/minecraft/class_1311;method_27920()I
      named getDespawnStartRange Lnet/minecraft/entity/SpawnGroup;getDespawnStartRange()I