Package net.minecraft.world.biome
Record Class SpawnSettings.SpawnEntry
java.lang.Object
java.lang.Record
net.minecraft.world.biome.SpawnSettings.SpawnEntry
- Record Components:
type-minGroupSize-maxGroupSize-
- Enclosing class:
SpawnSettings
public static record SpawnSettings.SpawnEntry(EntityType<?> type, int minGroupSize, int maxGroupSize)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/biome/SpawnSettings$SpawnEntryintermediary net/minecraft/class_5483$class_1964official dly$cnamed typeintermediary comp_3488official bnamed minGroupSizeintermediary comp_3489official cnamed maxGroupSizeintermediary comp_3490official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<SpawnSettings.SpawnEntry> private final intThe field for themaxGroupSizerecord component.private final intThe field for theminGroupSizerecord component.private final EntityType<?> The field for thetyperecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxGroupSizerecord component.intReturns the value of theminGroupSizerecord component.toString()Returns a string representation of this record class.EntityType<?> type()Returns the value of thetyperecord component.
-
Field Details
-
type
The field for thetyperecord component. -
minGroupSize
private final int minGroupSizeThe field for theminGroupSizerecord component. -
maxGroupSize
private final int maxGroupSizeThe field for themaxGroupSizerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/biome/SpawnSettings$SpawnEntry;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_24681Lnet/minecraft/class_5483$class_1964;field_24681:Lcom/mojang/serialization/MapCodec;official aLdly$c;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
SpawnEntry
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/biome/SpawnSettings$SpawnEntry;<init>(Lnet/minecraft/entity/EntityType;II)Vintermediary <init>Lnet/minecraft/class_5483$class_1964;<init>(Lnet/minecraft/class_1299;II)Vofficial <init>Ldly$c;<init>(Lbxn;II)V
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
minGroupSize
public int minGroupSize()Returns the value of theminGroupSizerecord component.- Returns:
- the value of the
minGroupSizerecord component
-
maxGroupSize
public int maxGroupSize()Returns the value of themaxGroupSizerecord component.- Returns:
- the value of the
maxGroupSizerecord component
-