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 Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandSourceStackThe field for thesourcerecord component.private final MultipleTestTrackerThe field for thetrackerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTestSummaryDisplayer(CommandSourceStack source, MultipleTestTracker tracker) Creates an instance of aTestSummaryDisplayerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.private voidsource()Returns the value of thesourcerecord component.voidtestAddedForRerun(GameTestInfo original, GameTestInfo copy, GameTestRunner runner) voidtestFailed(GameTestInfo testInfo, GameTestRunner runner) voidtestPassed(GameTestInfo testInfo, GameTestRunner runner) voidtestStructureLoaded(GameTestInfo testInfo) final StringtoString()Returns a string representation of this record class.tracker()Returns the value of thetrackerrecord component.
-
Field Details
-
source
The field for thesourcerecord component. -
tracker
The field for thetrackerrecord component.
-
-
Constructor Details
-
TestSummaryDisplayer
Creates an instance of aTestSummaryDisplayerrecord class.- Parameters:
source- the value for thesourcerecord componenttracker- the value for thetrackerrecord component
-
-
Method Details
-
testStructureLoaded
- Specified by:
testStructureLoadedin interfaceGameTestListener
-
testPassed
- Specified by:
testPassedin interfaceGameTestListener
-
testFailed
- Specified by:
testFailedin interfaceGameTestListener
-
testAddedForRerun
- Specified by:
testAddedForRerunin interfaceGameTestListener
-
showTestSummaryIfAllDone
private void showTestSummaryIfAllDone() -
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
tracker
Returns the value of thetrackerrecord component.- Returns:
- the value of the
trackerrecord component
-