Record Class RandomSpreadStructurePlacement
java.lang.Object
java.lang.Record
net.minecraft.world.gen.chunk.placement.RandomSpreadStructurePlacement
- Record Components:
spacing
-separation
-spreadType
-salt
-locateOffset
-
- All Implemented Interfaces:
StructurePlacement
public record RandomSpreadStructurePlacement(int spacing, int separation, SpreadType spreadType, int salt, Vec3i locateOffset)
extends Record
implements StructurePlacement
- Mappings:
Namespace Name official dge
intermediary net/minecraft/class_6872
named net/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement
official c
intermediary comp_340
named spacing
official d
intermediary comp_341
named separation
official e
intermediary comp_342
named spreadType
official f
intermediary comp_343
named salt
official g
intermediary comp_344
named locateOffset
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RandomSpreadStructurePlacement>
private final Vec3i
The field for thelocateOffset
record component.private final int
The field for thesalt
record component.private final int
The field for theseparation
record component.private final int
The field for thespacing
record component.private final SpreadType
The field for thespreadType
record component.Fields inherited from interface net.minecraft.world.gen.chunk.placement.StructurePlacement
TYPE_CODEC
-
Constructor Summary
ConstructorDescriptionRandomSpreadStructurePlacement
(int spacing, int separation, SpreadType spreadType, int salt) RandomSpreadStructurePlacement
(int int2, int int3, SpreadType spreadType, int int4, Vec3i vec3i) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getStartChunk
(long seed, int x, int z) getType()
final int
hashCode()
Returns a hash code value for this object.boolean
isStartChunk
(ChunkGenerator chunkGenerator, long long2, int int2, int int3) Returns the value of thelocateOffset
record component.int
salt()
Returns the value of thesalt
record component.int
Returns the value of theseparation
record component.int
spacing()
Returns the value of thespacing
record component.Returns the value of thespreadType
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
spacing
private final int spacingThe field for thespacing
record component. -
separation
private final int separationThe field for theseparation
record component. -
spreadType
The field for thespreadType
record component. -
salt
private final int saltThe field for thesalt
record component. -
locateOffset
The field for thelocateOffset
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Ldge;a:Lcom/mojang/serialization/Codec;
intermediary field_36420
Lnet/minecraft/class_6872;field_36420:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
RandomSpreadStructurePlacement
- Mappings:
Namespace Name Mixin selector official <init>
Ldge;<init>(IILdgf;I)V
intermediary <init>
Lnet/minecraft/class_6872;<init>(IILnet/minecraft/class_6873;I)V
named <init>
Lnet/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement;<init>(IILnet/minecraft/world/gen/chunk/placement/SpreadType;I)V
-
RandomSpreadStructurePlacement
public RandomSpreadStructurePlacement(int int2, int int3, SpreadType spreadType, int int4, Vec3i vec3i)
-
-
Method Details
-
getStartChunk
- Mappings:
Namespace Name Mixin selector official a
Ldge;a(JII)Lcac;
intermediary method_40169
Lnet/minecraft/class_6872;method_40169(JII)Lnet/minecraft/class_1923;
named getStartChunk
Lnet/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement;getStartChunk(JII)Lnet/minecraft/util/math/ChunkPos;
-
isStartChunk
- Specified by:
isStartChunk
in interfaceStructurePlacement
- Mappings:
Namespace Name Mixin selector official a
Ldgg;a(Lcqr;JII)Z
intermediary method_40168
Lnet/minecraft/class_6874;method_40168(Lnet/minecraft/class_2794;JII)Z
named isStartChunk
Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;isStartChunk(Lnet/minecraft/world/gen/chunk/ChunkGenerator;JII)Z
-
getType
- Specified by:
getType
in interfaceStructurePlacement
- Mappings:
Namespace Name Mixin selector official a
Ldgg;a()Ldgh;
intermediary method_40166
Lnet/minecraft/class_6874;method_40166()Lnet/minecraft/class_6875;
named getType
Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;getType()Lnet/minecraft/world/gen/chunk/placement/StructurePlacementType;
-
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 '=='. -
spacing
public int spacing()Returns the value of thespacing
record component.- Returns:
- the value of the
spacing
record component
-
separation
public int separation()Returns the value of theseparation
record component.- Returns:
- the value of the
separation
record component
-
spreadType
Returns the value of thespreadType
record component.- Returns:
- the value of the
spreadType
record component
-
salt
public int salt()Returns the value of thesalt
record component.- Returns:
- the value of the
salt
record component
-
locateOffset
Returns the value of thelocateOffset
record component.- Returns:
- the value of the
locateOffset
record component
-