Record Class ChunkStep

java.lang.Object
java.lang.Record
net.minecraft.world.level.chunk.status.ChunkStep

public record ChunkStep(ChunkStatus targetStatus, ChunkDependencies directDependencies, ChunkDependencies accumulatedDependencies, int blockStateWriteRadius, ChunkStatusTask task) extends Record
  • Field Details

    • targetStatus

      private final ChunkStatus targetStatus
      The field for the targetStatus record component.
    • directDependencies

      private final ChunkDependencies directDependencies
      The field for the directDependencies record component.
    • accumulatedDependencies

      private final ChunkDependencies accumulatedDependencies
      The field for the accumulatedDependencies record component.
    • blockStateWriteRadius

      private final int blockStateWriteRadius
      The field for the blockStateWriteRadius record component.
    • task

      private final ChunkStatusTask task
      The field for the task record component.
  • Constructor Details

    • ChunkStep

      public ChunkStep(ChunkStatus targetStatus, ChunkDependencies directDependencies, ChunkDependencies accumulatedDependencies, int blockStateWriteRadius, ChunkStatusTask task)
      Creates an instance of a ChunkStep record class.
      Parameters:
      targetStatus - the value for the targetStatus record component
      directDependencies - the value for the directDependencies record component
      accumulatedDependencies - the value for the accumulatedDependencies record component
      blockStateWriteRadius - the value for the blockStateWriteRadius record component
      task - the value for the task record component
  • Method Details

    • getAccumulatedRadiusOf

      public int getAccumulatedRadiusOf(ChunkStatus p_345141_)
    • apply

    • completeChunkGeneration

      private ChunkAccess completeChunkGeneration(ChunkAccess p_342706_, @Nullable ProfiledDuration p_343538_)
    • 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 o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • targetStatus

      public ChunkStatus targetStatus()
      Returns the value of the targetStatus record component.
      Returns:
      the value of the targetStatus record component
    • directDependencies

      public ChunkDependencies directDependencies()
      Returns the value of the directDependencies record component.
      Returns:
      the value of the directDependencies record component
    • accumulatedDependencies

      public ChunkDependencies accumulatedDependencies()
      Returns the value of the accumulatedDependencies record component.
      Returns:
      the value of the accumulatedDependencies record component
    • blockStateWriteRadius

      public int blockStateWriteRadius()
      Returns the value of the blockStateWriteRadius record component.
      Returns:
      the value of the blockStateWriteRadius record component
    • task

      public ChunkStatusTask task()
      Returns the value of the task record component.
      Returns:
      the value of the task record component