Package net.minecraft.gametest.framework
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerLevelThe field for thelevelrecord component.private final MultipleTestTrackerThe field for thetrackerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTestSummaryDisplayer(ServerLevel level, 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.level()Returns the value of thelevelrecord component.private static voidshowTestSummaryIfAllDone(ServerLevel p_329959_, MultipleTestTracker p_331168_) voidtestAddedForRerun(GameTestInfo p_328539_, GameTestInfo p_335500_, GameTestRunner p_328503_) voidtestFailed(GameTestInfo p_128066_, GameTestRunner p_333809_) voidtestPassed(GameTestInfo p_177797_, GameTestRunner p_333026_) voidtestStructureLoaded(GameTestInfo p_128064_) final StringtoString()Returns a string representation of this record class.tracker()Returns the value of thetrackerrecord component.
-
Field Details
-
level
The field for thelevelrecord component. -
tracker
The field for thetrackerrecord component.
-
-
Constructor Details
-
TestSummaryDisplayer
Creates an instance of aTestSummaryDisplayerrecord class.- Parameters:
level- the value for thelevelrecord componenttracker- the value for thetrackerrecord component
-
-
Method Details
-
testStructureLoaded
- Specified by:
testStructureLoadedin interfaceGameTestListener
-
testPassed
- Specified by:
testPassedin interfaceGameTestListener
-
testFailed
- Specified by:
testFailedin interfaceGameTestListener
-
testAddedForRerun
public void testAddedForRerun(GameTestInfo p_328539_, GameTestInfo p_335500_, GameTestRunner p_328503_) - Specified by:
testAddedForRerunin interfaceGameTestListener
-
showTestSummaryIfAllDone
-
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. -
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. -
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). -
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
tracker
Returns the value of thetrackerrecord component.- Returns:
- the value of the
trackerrecord component
-