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
Modifier and TypeFieldDescriptionprivate final ServerLevel
The field for thelevel
record component.private final MultipleTestTracker
The field for thetracker
record component. -
Constructor Summary
ConstructorDescriptionTestSummaryDisplayer
(ServerLevel level, MultipleTestTracker tracker) Creates an instance of aTestSummaryDisplayer
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.level()
Returns the value of thelevel
record component.private static void
showTestSummaryIfAllDone
(ServerLevel p_329959_, MultipleTestTracker p_331168_) void
testAddedForRerun
(GameTestInfo p_328539_, GameTestInfo p_335500_, GameTestRunner p_328503_) void
testFailed
(GameTestInfo p_128066_, GameTestRunner p_333809_) void
testPassed
(GameTestInfo p_177797_, GameTestRunner p_333026_) void
testStructureLoaded
(GameTestInfo p_128064_) final String
toString()
Returns a string representation of this record class.tracker()
Returns the value of thetracker
record component.
-
Field Details
-
level
The field for thelevel
record component. -
tracker
The field for thetracker
record component.
-
-
Constructor Details
-
TestSummaryDisplayer
Creates an instance of aTestSummaryDisplayer
record class.- Parameters:
level
- the value for thelevel
record componenttracker
- the value for thetracker
record component
-
-
Method Details
-
testStructureLoaded
- Specified by:
testStructureLoaded
in interfaceGameTestListener
-
testPassed
- Specified by:
testPassed
in interfaceGameTestListener
-
testFailed
- Specified by:
testFailed
in interfaceGameTestListener
-
testAddedForRerun
public void testAddedForRerun(GameTestInfo p_328539_, GameTestInfo p_335500_, GameTestRunner p_328503_) - Specified by:
testAddedForRerun
in 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 thelevel
record component.- Returns:
- the value of the
level
record component
-
tracker
Returns the value of thetracker
record component.- Returns:
- the value of the
tracker
record component
-