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
official bei
intermediary net/minecraft/class_6521
named net/minecraft/util/profiling/jfr/sample/ChunkGenerationSample
official a
intermediary comp_16
named duration
official b
intermediary comp_17
named chunkPos
official c
intermediary comp_18
named centerPos
official d
intermediary comp_19
named chunkStatus
official e
intermediary comp_21
named worldKey
  • 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
      official <init> Lbei;<init>(Ljava/time/Duration;Lcpc;Lakg;Ldhk;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
      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
  • Method Details

    • fromEvent

      public static ChunkGenerationSample fromEvent(RecordedEvent event)
      Mappings:
      Namespace Name Mixin selector
      official a Lbei;a(Ljdk/jfr/consumer/RecordedEvent;)Lbei;
      intermediary method_38031 Lnet/minecraft/class_6521;method_38031(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6521;
      named fromEvent Lnet/minecraft/util/profiling/jfr/sample/ChunkGenerationSample;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/ChunkGenerationSample;
    • 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()
      Specified by:
      duration in interface LongRunningSample
      Mappings:
      Namespace Name Mixin selector
      official a Lbep;a()Ljava/time/Duration;
      intermediary comp_16 Lnet/minecraft/class_6534;comp_16()Ljava/time/Duration;
      named duration Lnet/minecraft/util/profiling/jfr/sample/LongRunningSample;duration()Ljava/time/Duration;
    • 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