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(CommandSourceStack source, MultipleTestTracker tracker)
extends Record
implements GameTestListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandSourceStack
The field for thesource
record component.private final MultipleTestTracker
The field for thetracker
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTestSummaryDisplayer
(CommandSourceStack source, 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.private void
source()
Returns the value of thesource
record component.void
testAddedForRerun
(GameTestInfo p_319856_, GameTestInfo p_320528_, GameTestRunner p_319832_) void
testFailed
(GameTestInfo p_128066_, GameTestRunner p_320567_) void
testPassed
(GameTestInfo p_177797_, GameTestRunner p_320726_) 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
-
source
The field for thesource
record component. -
tracker
The field for thetracker
record component.
-
-
Constructor Details
-
TestSummaryDisplayer
Creates an instance of aTestSummaryDisplayer
record class.- Parameters:
source
- the value for thesource
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_319856_, GameTestInfo p_320528_, GameTestRunner p_319832_) - Specified by:
testAddedForRerun
in interfaceGameTestListener
-
showTestSummaryIfAllDone
private void 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)
. -
source
Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-
tracker
Returns the value of thetracker
record component.- Returns:
- the value of the
tracker
record component
-