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$SpawnEntry
intermediary net/minecraft/class_5483$class_1964
official dly$c
named type
intermediary comp_3488
official b
named minGroupSize
intermediary comp_3489
official c
named maxGroupSize
intermediary comp_3490
official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<SpawnSettings.SpawnEntry> private final int
The field for themaxGroupSize
record component.private final int
The field for theminGroupSize
record component.private final EntityType
<?> The field for thetype
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of themaxGroupSize
record component.int
Returns the value of theminGroupSize
record component.toString()
Returns a string representation of this record class.EntityType
<?> type()
Returns the value of thetype
record component.
-
Field Details
-
type
The field for thetype
record component. -
minGroupSize
private final int minGroupSizeThe field for theminGroupSize
record component. -
maxGroupSize
private final int maxGroupSizeThe field for themaxGroupSize
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/world/biome/SpawnSettings$SpawnEntry;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_24681
Lnet/minecraft/class_5483$class_1964;field_24681:Lcom/mojang/serialization/MapCodec;
official a
Ldly$c;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
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 thetype
record component.- Returns:
- the value of the
type
record component
-
minGroupSize
public int minGroupSize()Returns the value of theminGroupSize
record component.- Returns:
- the value of the
minGroupSize
record component
-
maxGroupSize
public int maxGroupSize()Returns the value of themaxGroupSize
record component.- Returns:
- the value of the
maxGroupSize
record component
-