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 - dsh- intermediary - net/minecraft/class_7061- named - net/minecraft/world/StructureSpawns- official - b- intermediary - comp_514- named - boundingBox- official - c- intermediary - comp_515- named - spawns
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionStructureSpawns(StructureSpawns.BoundingBox boundingBox, Pool<SpawnSettings.SpawnEntry> pool) 
- 
Method SummaryModifier 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- 
boundingBoxThe field for theboundingBoxrecord component.
- 
spawnsThe field for thespawnsrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldsh;a:Lcom/mojang/serialization/Codec;- intermediary - field_37198- Lnet/minecraft/class_7061;field_37198:Lcom/mojang/serialization/Codec;- named - CODEC- Lnet/minecraft/world/StructureSpawns;CODEC:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
StructureSpawnspublic StructureSpawns(StructureSpawns.BoundingBox boundingBox, Pool<SpawnSettings.SpawnEntry> pool) 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
boundingBoxReturns the value of theboundingBoxrecord component.- Returns:
- the value of the boundingBoxrecord component
 
- 
spawnsReturns the value of thespawnsrecord component.- Returns:
- the value of the spawnsrecord component
 
 
-