Record Class ConcentricRingsStructurePlacement
java.lang.Object
java.lang.Record
net.minecraft.world.gen.chunk.placement.ConcentricRingsStructurePlacement
- Record Components:
distance
-spread
-count
-
- All Implemented Interfaces:
StructurePlacement
public record ConcentricRingsStructurePlacement(int distance, int spread, int count)
extends Record
implements StructurePlacement
- Mappings:
Namespace Name official dgd
intermediary net/minecraft/class_6871
named net/minecraft/world/gen/chunk/placement/ConcentricRingsStructurePlacement
official c
intermediary comp_337
named distance
official d
intermediary comp_338
named spread
official e
intermediary comp_339
named count
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ConcentricRingsStructurePlacement>
private final int
The field for thecount
record component.private final int
The field for thedistance
record component.private final int
The field for thespread
record component.Fields inherited from interface net.minecraft.world.gen.chunk.placement.StructurePlacement
TYPE_CODEC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
count()
Returns the value of thecount
record component.int
distance()
Returns the value of thedistance
record component.final boolean
Indicates whether some other object is "equal to" this one.getType()
final int
hashCode()
Returns a hash code value for this object.boolean
isStartChunk
(ChunkGenerator chunkGenerator, long long2, int int2, int int3) int
spread()
Returns the value of thespread
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
distance
private final int distanceThe field for thedistance
record component. -
spread
private final int spreadThe field for thespread
record component. -
count
private final int countThe field for thecount
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Ldgd;a:Lcom/mojang/serialization/Codec;
intermediary field_36419
Lnet/minecraft/class_6871;field_36419:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/gen/chunk/placement/ConcentricRingsStructurePlacement;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
ConcentricRingsStructurePlacement
public ConcentricRingsStructurePlacement(int int2, int int3, int int4)
-
-
Method Details
-
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. All components in this record class are compared with '=='. -
distance
public int distance()Returns the value of thedistance
record component.- Returns:
- the value of the
distance
record component
-
spread
public int spread()Returns the value of thespread
record component.- Returns:
- the value of the
spread
record component
-
count
public int count()Returns the value of thecount
record component.- Returns:
- the value of the
count
record component
-