Record Class ConcentricRingsStructurePlacement
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.structure.placement.ConcentricRingsStructurePlacement
- All Implemented Interfaces:
- StructurePlacement
public record ConcentricRingsStructurePlacement(int distance, int spread, int count)
extends Record
implements StructurePlacement
- 
Field SummaryFieldsModifier 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.
- 
Constructor SummaryConstructorsConstructorDescriptionConcentricRingsStructurePlacement(int distance, int spread, int count) Creates an instance of aConcentricRingsStructurePlacementrecord class.
- 
Method SummaryModifier 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.final inthashCode()Returns a hash code value for this object.booleanisFeatureChunk(ChunkGenerator p_212310_, long p_212311_, int p_212312_, int p_212313_) intspread()Returns the value of thespreadrecord component.final StringtoString()Returns a string representation of this record class.type()
- 
Field Details- 
distanceprivate final int distanceThe field for thedistancerecord component.
- 
spreadprivate final int spreadThe field for thespreadrecord component.
- 
countprivate final int countThe field for thecountrecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
ConcentricRingsStructurePlacementpublic ConcentricRingsStructurePlacement(int distance, int spread, int count) Creates an instance of aConcentricRingsStructurePlacementrecord class.- Parameters:
- distance- the value for the- distancerecord component
- spread- the value for the- spreadrecord component
- count- the value for the- countrecord component
 
 
- 
- 
Method Details- 
isFeatureChunkpublic boolean isFeatureChunk(ChunkGenerator p_212310_, long p_212311_, int p_212312_, int p_212313_) - Specified by:
- isFeatureChunkin interface- StructurePlacement
 
- 
type- Specified by:
- typein interface- StructurePlacement
 
- 
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 with '=='.
- 
distancepublic int distance()Returns the value of thedistancerecord component.- Returns:
- the value of the distancerecord component
 
- 
spreadpublic int spread()Returns the value of thespreadrecord component.- Returns:
- the value of the spreadrecord component
 
- 
countpublic int count()Returns the value of thecountrecord component.- Returns:
- the value of the countrecord component
 
 
-