Record Class TestCommand.TestSummaryDisplayer

java.lang.Object
java.lang.Record
net.minecraft.gametest.framework.TestCommand.TestSummaryDisplayer
All Implemented Interfaces:
GameTestListener
Enclosing class:
TestCommand

public static record TestCommand.TestSummaryDisplayer(ServerLevel level, MultipleTestTracker tracker) extends Record implements GameTestListener
  • Field Details

    • level

      private final ServerLevel level
      The field for the level record component.
    • tracker

      private final MultipleTestTracker tracker
      The field for the tracker record component.
  • Constructor Details

    • TestSummaryDisplayer

      public TestSummaryDisplayer(ServerLevel level, MultipleTestTracker tracker)
      Creates an instance of a TestSummaryDisplayer record class.
      Parameters:
      level - the value for the level record component
      tracker - the value for the tracker record component
  • Method Details

    • testStructureLoaded

      public void testStructureLoaded(GameTestInfo p_128064_)
      Specified by:
      testStructureLoaded in interface GameTestListener
    • testPassed

      public void testPassed(GameTestInfo p_177797_, GameTestRunner p_320726_)
      Specified by:
      testPassed in interface GameTestListener
    • testFailed

      public void testFailed(GameTestInfo p_128066_, GameTestRunner p_320567_)
      Specified by:
      testFailed in interface GameTestListener
    • testAddedForRerun

      public void testAddedForRerun(GameTestInfo p_319856_, GameTestInfo p_320528_, GameTestRunner p_319832_)
      Specified by:
      testAddedForRerun in interface GameTestListener
    • showTestSummaryIfAllDone

      private static void showTestSummaryIfAllDone(ServerLevel p_319899_, MultipleTestTracker p_320682_)
    • 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.
    • level

      public ServerLevel level()
      Returns the value of the level record component.
      Returns:
      the value of the level record component
    • tracker

      public MultipleTestTracker tracker()
      Returns the value of the tracker record component.
      Returns:
      the value of the tracker record component