Package net.minecraft.world
Record Class StructureSpawns
java.lang.Object
java.lang.Record
net.minecraft.world.StructureSpawns
- Record Components:
boundingBox-spawns-
public record StructureSpawns(StructureSpawns.BoundingBox boundingBox, Pool<SpawnSettings.SpawnEntry> spawns)
extends Record
- Mappings:
Namespace Name official dseintermediary net/minecraft/class_7061named net/minecraft/world/StructureSpawnsofficial bintermediary comp_514named boundingBoxofficial cintermediary comp_515named spawns
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StructureSpawns.BoundingBoxThe field for theboundingBoxrecord component.static final com.mojang.serialization.Codec<StructureSpawns>private final Pool<SpawnSettings.SpawnEntry>The field for thespawnsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStructureSpawns(StructureSpawns.BoundingBox boundingBox, Pool<SpawnSettings.SpawnEntry> pool) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theboundingBoxrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.spawns()Returns the value of thespawnsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
boundingBox
The field for theboundingBoxrecord component. -
spawns
The field for thespawnsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLdse;a:Lcom/mojang/serialization/Codec;intermediary field_37198Lnet/minecraft/class_7061;field_37198:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/StructureSpawns;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
StructureSpawns
public StructureSpawns(StructureSpawns.BoundingBox boundingBox, Pool<SpawnSettings.SpawnEntry> pool)
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
boundingBox
Returns the value of theboundingBoxrecord component.- Returns:
- the value of the
boundingBoxrecord component
-
spawns
Returns the value of thespawnsrecord component.- Returns:
- the value of the
spawnsrecord component
-