Record Class StructureGenStat

java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.StructureGenStat
All Implemented Interfaces:
TimedStat

public record StructureGenStat(Duration duration, ChunkPos chunkPos, String structureName, String level, boolean success) extends Record implements TimedStat
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final ChunkPos
    The field for the chunkPos record component.
    private final Duration
    The field for the duration record component.
    private final String
    The field for the level record component.
    private final String
    The field for the structureName record component.
    private final boolean
    The field for the success record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    StructureGenStat(Duration duration, ChunkPos chunkPos, String structureName, String level, boolean success)
    Creates an instance of a StructureGenStat record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the chunkPos record component.
    Returns the value of the duration record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    from(RecordedEvent p_383225_)
     
    final int
    Returns a hash code value for this object.
    Returns the value of the level record component.
    Returns the value of the structureName record component.
    boolean
    Returns the value of the success record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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

    • StructureGenStat

      public StructureGenStat(Duration duration, ChunkPos chunkPos, String structureName, String level, boolean success)
      Creates an instance of a StructureGenStat record class.
      Parameters:
      duration - the value for the duration record component
      chunkPos - the value for the chunkPos record component
      structureName - the value for the structureName record component
      level - the value for the level record component
      success - the value for the success record component
  • Method Details

    • from

      public static StructureGenStat from(RecordedEvent p_383225_)
    • 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.
    • duration

      public Duration duration()
      Returns the value of the duration record component.
      Specified by:
      duration in interface TimedStat
      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