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 dkl
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 Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final StructureSpawns.BoundingBox
The field for theboundingBox
record component.static final com.mojang.serialization.Codec<StructureSpawns>
private final Pool<SpawnSettings.SpawnEntry>
The field for thespawns
record component. -
Constructor Summary
ConstructorDescriptionStructureSpawns
(StructureSpawns.BoundingBox boundingBox, Pool<SpawnSettings.SpawnEntry> pool) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theboundingBox
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.spawns()
Returns the value of thespawns
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
boundingBox
The field for theboundingBox
record component. -
spawns
The field for thespawns
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Ldkl;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
-
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 theboundingBox
record component.- Returns:
- the value of the
boundingBox
record component
-
spawns
Returns the value of thespawns
record component.- Returns:
- the value of the
spawns
record component
-