Package net.minecraft.entity
Enum SpawnGroup
- All Implemented Interfaces:
Serializable,Comparable<SpawnGroup>,java.lang.constant.Constable,StringIdentifiable
public enum SpawnGroup extends Enum<SpawnGroup> implements StringIdentifiable
- Mappings:
Namespace Name official arkintermediary net/minecraft/class_1311named net/minecraft/entity/SpawnGroup
-
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 AMBIENTCREATUREMISCMONSTERWATER_AMBIENTWATER_CREATURE -
Field Summary
Fields Modifier and Type Field Description private booleananimalprivate static Map<String,SpawnGroup>BY_NAMEprivate intcapacitystatic com.mojang.serialization.Codec<SpawnGroup>CODECprivate intdespawnStartRangeprivate intimmediateDespawnRangeprivate Stringnameprivate booleanpeaceful -
Constructor Summary
Constructors Modifier Constructor Description privateSpawnGroup(String name, int spawnCap, boolean peaceful, boolean animal, int immediateDespawnRange) -
Method Summary
Modifier and Type Method Description StringasString()static SpawnGroupbyName(String name)intgetCapacity()intgetDespawnStartRange()intgetImmediateDespawnRange()StringgetName()booleanisAnimal()booleanisPeaceful()static SpawnGroupvalueOf(String name)Returns the enum constant of this type with the specified name.static SpawnGroup[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MONSTER
- Mappings:
Namespace Name Mixin selector official aLark;a:Lark;intermediary field_6302Lnet/minecraft/class_1311;field_6302:Lnet/minecraft/class_1311;named MONSTERLnet/minecraft/entity/SpawnGroup;MONSTER:Lnet/minecraft/entity/SpawnGroup;
-
CREATURE
- Mappings:
Namespace Name Mixin selector official bLark;b:Lark;intermediary field_6294Lnet/minecraft/class_1311;field_6294:Lnet/minecraft/class_1311;named CREATURELnet/minecraft/entity/SpawnGroup;CREATURE:Lnet/minecraft/entity/SpawnGroup;
-
AMBIENT
- Mappings:
Namespace Name Mixin selector official cLark;c:Lark;intermediary field_6303Lnet/minecraft/class_1311;field_6303:Lnet/minecraft/class_1311;named AMBIENTLnet/minecraft/entity/SpawnGroup;AMBIENT:Lnet/minecraft/entity/SpawnGroup;
-
WATER_CREATURE
- Mappings:
Namespace Name Mixin selector official dLark;d:Lark;intermediary field_6300Lnet/minecraft/class_1311;field_6300:Lnet/minecraft/class_1311;named WATER_CREATURELnet/minecraft/entity/SpawnGroup;WATER_CREATURE:Lnet/minecraft/entity/SpawnGroup;
-
WATER_AMBIENT
- Mappings:
Namespace Name Mixin selector official eLark;e:Lark;intermediary field_24460Lnet/minecraft/class_1311;field_24460:Lnet/minecraft/class_1311;named WATER_AMBIENTLnet/minecraft/entity/SpawnGroup;WATER_AMBIENT:Lnet/minecraft/entity/SpawnGroup;
-
MISC
- Mappings:
Namespace Name Mixin selector official fLark;f:Lark;intermediary field_17715Lnet/minecraft/class_1311;field_17715:Lnet/minecraft/class_1311;named MISCLnet/minecraft/entity/SpawnGroup;MISC:Lnet/minecraft/entity/SpawnGroup;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official gLark;g:Lcom/mojang/serialization/Codec;intermediary field_24655Lnet/minecraft/class_1311;field_24655:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/entity/SpawnGroup;CODEC:Lcom/mojang/serialization/Codec;
-
BY_NAME
- Mappings:
Namespace Name Mixin selector official hLark;h:Ljava/util/Map;intermediary field_6296Lnet/minecraft/class_1311;field_6296:Ljava/util/Map;named BY_NAMELnet/minecraft/entity/SpawnGroup;BY_NAME:Ljava/util/Map;
-
capacity
private final int capacity- Mappings:
Namespace Name Mixin selector official iLark;i:Iintermediary field_6297Lnet/minecraft/class_1311;field_6297:Inamed capacityLnet/minecraft/entity/SpawnGroup;capacity:I
-
peaceful
private final boolean peaceful- Mappings:
Namespace Name Mixin selector official jLark;j:Zintermediary field_6298Lnet/minecraft/class_1311;field_6298:Znamed peacefulLnet/minecraft/entity/SpawnGroup;peaceful:Z
-
animal
private final boolean animal- Mappings:
Namespace Name Mixin selector official kLark;k:Zintermediary field_6295Lnet/minecraft/class_1311;field_6295:Znamed animalLnet/minecraft/entity/SpawnGroup;animal:Z
-
name
- Mappings:
Namespace Name Mixin selector official lLark;l:Ljava/lang/String;intermediary field_6304Lnet/minecraft/class_1311;field_6304:Ljava/lang/String;named nameLnet/minecraft/entity/SpawnGroup;name:Ljava/lang/String;
-
despawnStartRange
private final int despawnStartRange- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official mLark;m:Iintermediary field_24461Lnet/minecraft/class_1311;field_24461:Inamed despawnStartRangeLnet/minecraft/entity/SpawnGroup;despawnStartRange:I
-
immediateDespawnRange
private final int immediateDespawnRange- Mappings:
Namespace Name Mixin selector official nLark;n:Iintermediary field_24462Lnet/minecraft/class_1311;field_24462:Inamed immediateDespawnRangeLnet/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)Vintermediary <init>Lnet/minecraft/class_1311;<init>(Ljava/lang/String;ILjava/lang/String;IZZI)Vnamed <init>Lnet/minecraft/entity/SpawnGroup;<init>(Ljava/lang/String;ILjava/lang/String;IZZI)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
-
getName
- Mappings:
Namespace Name Mixin selector official bLark;b()Ljava/lang/String;intermediary method_6133Lnet/minecraft/class_1311;method_6133()Ljava/lang/String;named getNameLnet/minecraft/entity/SpawnGroup;getName()Ljava/lang/String;
-
asString
- Specified by:
asStringin interfaceStringIdentifiable- Mappings:
Namespace Name Mixin selector official aLagi;a()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-
byName
- Mappings:
Namespace Name Mixin selector official aLark;a(Ljava/lang/String;)Lark;intermediary method_28307Lnet/minecraft/class_1311;method_28307(Ljava/lang/String;)Lnet/minecraft/class_1311;named byNameLnet/minecraft/entity/SpawnGroup;byName(Ljava/lang/String;)Lnet/minecraft/entity/SpawnGroup;
-
getCapacity
public int getCapacity()- Mappings:
Namespace Name Mixin selector official cLark;c()Iintermediary method_6134Lnet/minecraft/class_1311;method_6134()Inamed getCapacityLnet/minecraft/entity/SpawnGroup;getCapacity()I
-
isPeaceful
public boolean isPeaceful()- Mappings:
Namespace Name Mixin selector official dLark;d()Zintermediary method_6136Lnet/minecraft/class_1311;method_6136()Znamed isPeacefulLnet/minecraft/entity/SpawnGroup;isPeaceful()Z
-
isAnimal
public boolean isAnimal()- Mappings:
Namespace Name Mixin selector official eLark;e()Zintermediary method_6135Lnet/minecraft/class_1311;method_6135()Znamed isAnimalLnet/minecraft/entity/SpawnGroup;isAnimal()Z
-
getImmediateDespawnRange
public int getImmediateDespawnRange()- Mappings:
Namespace Name Mixin selector official fLark;f()Iintermediary method_27919Lnet/minecraft/class_1311;method_27919()Inamed getImmediateDespawnRangeLnet/minecraft/entity/SpawnGroup;getImmediateDespawnRange()I
-
getDespawnStartRange
public int getDespawnStartRange()- Mappings:
Namespace Name Mixin selector official gLark;g()Iintermediary method_27920Lnet/minecraft/class_1311;method_27920()Inamed getDespawnStartRangeLnet/minecraft/entity/SpawnGroup;getDespawnStartRange()I
-