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(CommandSourceStack source, MultipleTestTracker tracker) extends Record implements GameTestListener
  • Field Details

    • source

      private final CommandSourceStack source
      The field for the source record component.
    • tracker

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

    • TestSummaryDisplayer

      public TestSummaryDisplayer(CommandSourceStack source, MultipleTestTracker tracker)
      Creates an instance of a TestSummaryDisplayer record class.
      Parameters:
      source - the value for the source 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 void showTestSummaryIfAllDone()
    • 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.
    • source

      public CommandSourceStack source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • tracker

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