Record Class StructureGenerationSample

java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.sample.StructureGenerationSample
Record Components:
duration -
chunkPos -
structureName -
level -
success -
All Implemented Interfaces:
LongRunningSample

public record StructureGenerationSample(Duration duration, ChunkPos chunkPos, String structureName, String level, boolean success) extends Record implements LongRunningSample
Mappings:
Namespace Name
named net/minecraft/util/profiling/jfr/sample/StructureGenerationSample
intermediary net/minecraft/class_10373
official bpx
named duration
intermediary comp_16
official a
named chunkPos
intermediary comp_3331
official b
named structureName
intermediary comp_3332
official c
named level
intermediary comp_3333
official d
named success
intermediary comp_3334
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.
    • structureName

      private final String structureName
      The field for the structureName record component.
    • level

      private final String level
      The field for the level record component.
    • success

      private final boolean success
      The field for the success record component.
  • Constructor Details

    • StructureGenerationSample

      public StructureGenerationSample(Duration duration, ChunkPos chunkPos, String string, String string2, boolean bool)
  • Method Details

    • fromEvent

      public static StructureGenerationSample fromEvent(RecordedEvent event)
      Mappings:
      Namespace Name Mixin selector
      named fromEvent Lnet/minecraft/util/profiling/jfr/sample/StructureGenerationSample;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/StructureGenerationSample;
      intermediary method_65114 Lnet/minecraft/class_10373;method_65114(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_10373;
      official a Lbpx;a(Ljdk/jfr/consumer/RecordedEvent;)Lbpx;
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • 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
    • structureName

      public String structureName()
      Returns the value of the structureName record component.
      Returns:
      the value of the structureName record component
    • level

      public String level()
      Returns the value of the level record component.
      Returns:
      the value of the level record component
    • success

      public boolean success()
      Returns the value of the success record component.
      Returns:
      the value of the success record component