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 dgdintermediary net/minecraft/class_6871named net/minecraft/world/gen/chunk/placement/ConcentricRingsStructurePlacementofficial cintermediary comp_337named distanceofficial dintermediary comp_338named spreadofficial eintermediary comp_339named count
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ConcentricRingsStructurePlacement>private final intThe field for thecountrecord component.private final intThe field for thedistancerecord component.private final intThe field for thespreadrecord component.Fields inherited from interface net.minecraft.world.gen.chunk.placement.StructurePlacement
TYPE_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.intdistance()Returns the value of thedistancerecord component.final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.booleanisStartChunk(ChunkGenerator chunkGenerator, long long2, int int2, int int3) intspread()Returns the value of thespreadrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
distance
private final int distanceThe field for thedistancerecord component. -
spread
private final int spreadThe field for thespreadrecord component. -
count
private final int countThe field for thecountrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLdgd;a:Lcom/mojang/serialization/Codec;intermediary field_36419Lnet/minecraft/class_6871;field_36419:Lcom/mojang/serialization/Codec;named CODECLnet/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:
isStartChunkin interfaceStructurePlacement- Mappings:
Namespace Name Mixin selector official aLdgg;a(Lcqr;JII)Zintermediary method_40168Lnet/minecraft/class_6874;method_40168(Lnet/minecraft/class_2794;JII)Znamed isStartChunkLnet/minecraft/world/gen/chunk/placement/StructurePlacement;isStartChunk(Lnet/minecraft/world/gen/chunk/ChunkGenerator;JII)Z
-
getType
- Specified by:
getTypein interfaceStructurePlacement- Mappings:
Namespace Name Mixin selector official aLdgg;a()Ldgh;intermediary method_40166Lnet/minecraft/class_6874;method_40166()Lnet/minecraft/class_6875;named getTypeLnet/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 thedistancerecord component.- Returns:
- the value of the
distancerecord component
-
spread
public int spread()Returns the value of thespreadrecord component.- Returns:
- the value of the
spreadrecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-