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 Details

    • distance

      private final int distance
      The field for the distance record component.
    • spread

      private final int spread
      The field for the spread record component.
    • count

      private final int count
      The field for the count record component.
    • CODEC

      public static final com.mojang.serialization.Codec<ConcentricRingsStructurePlacement> 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

      public boolean isStartChunk(ChunkGenerator chunkGenerator, long long2, int int2, int int3)
      Specified by:
      isStartChunk in interface StructurePlacement
      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

      public StructurePlacementType<?> getType()
      Specified by:
      getType in interface StructurePlacement
      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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • distance

      public int distance()
      Returns the value of the distance record component.
      Returns:
      the value of the distance record component
    • spread

      public int spread()
      Returns the value of the spread record component.
      Returns:
      the value of the spread record component
    • count

      public int count()
      Returns the value of the count record component.
      Returns:
      the value of the count record component