Record Class ChunkGenerationSample

java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.sample.ChunkGenerationSample
Record Components:
duration -
chunkPos -
centerPos -
chunkStatus -
worldKey -
All Implemented Interfaces:
LongRunningSample

public record ChunkGenerationSample(Duration duration, ChunkPos chunkPos, ColumnPos centerPos, ChunkStatus chunkStatus, String worldKey) extends Record implements LongRunningSample
Mappings:
Namespace Name
named net/minecraft/util/profiling/jfr/sample/ChunkGenerationSample
intermediary net/minecraft/class_6521
official bqo
named duration
intermediary comp_16
official a
named chunkPos
intermediary comp_17
official b
named centerPos
intermediary comp_18
official c
named chunkStatus
intermediary comp_19
official d
named worldKey
intermediary comp_21
official e
  • Field Details

    • duration

      private final Duration duration
      The field for the duration record component.
    • chunkPos

      private final ChunkPos chunkPos
      The field for the chunkPos record component.
    • centerPos

      private final ColumnPos centerPos
      The field for the centerPos record component.
    • chunkStatus

      private final ChunkStatus chunkStatus
      The field for the chunkStatus record component.
    • worldKey

      private final String worldKey
      The field for the worldKey record component.
  • Constructor Details

    • ChunkGenerationSample

      public ChunkGenerationSample(Duration duration, ChunkPos chunkPos, ColumnPos columnPos, ChunkStatus chunkStatus, String string)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/profiling/jfr/sample/ChunkGenerationSample;<init>(Ljava/time/Duration;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/util/math/ColumnPos;Lnet/minecraft/world/chunk/ChunkStatus;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_6521;<init>(Ljava/time/Duration;Lnet/minecraft/class_1923;Lnet/minecraft/class_2265;Lnet/minecraft/class_2806;Ljava/lang/String;)V
      official <init> Lbqo;<init>(Ljava/time/Duration;Ldgn;Lart;Leaq;Ljava/lang/String;)V
  • Method Details

    • fromEvent

      public static ChunkGenerationSample fromEvent(RecordedEvent event)
      Mappings:
      Namespace Name Mixin selector
      named fromEvent Lnet/minecraft/util/profiling/jfr/sample/ChunkGenerationSample;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/ChunkGenerationSample;
      intermediary method_38031 Lnet/minecraft/class_6521;method_38031(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6521;
      official a Lbqo;a(Ljdk/jfr/consumer/RecordedEvent;)Lbqo;
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • duration

      public Duration duration()
      Returns the value of the duration record component.
      Specified by:
      duration in interface LongRunningSample
      Returns:
      the value of the duration record component
    • chunkPos

      public ChunkPos chunkPos()
      Returns the value of the chunkPos record component.
      Returns:
      the value of the chunkPos record component
    • centerPos

      public ColumnPos centerPos()
      Returns the value of the centerPos record component.
      Returns:
      the value of the centerPos record component
    • chunkStatus

      public ChunkStatus chunkStatus()
      Returns the value of the chunkStatus record component.
      Returns:
      the value of the chunkStatus record component
    • worldKey

      public String worldKey()
      Returns the value of the worldKey record component.
      Returns:
      the value of the worldKey record component