Package net.minecraft.server.command
Record Class TestCommand.Listener
java.lang.Object
java.lang.Record
net.minecraft.server.command.TestCommand.Listener
- Record Components:
- source-
- tests-
- All Implemented Interfaces:
- TestListener
- Enclosing class:
- TestCommand
public static record TestCommand.Listener(ServerCommandSource source, TestSet tests)
extends Record
implements TestListener
- Mappings:
- Namespace - Name - named - net/minecraft/server/command/TestCommand$Listener- intermediary - net/minecraft/class_4527$class_4528- official - tk$b- named - source- intermediary - comp_3538- official - a- named - tests- intermediary - comp_2217- official - b
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidonFailed(GameTestState test, TestRunContext context) private voidvoidonPassed(GameTestState test, TestRunContext context) voidonRetry(GameTestState lastState, GameTestState nextState, TestRunContext context) voidonStarted(GameTestState test) source()Returns the value of thesourcerecord component.tests()Returns the value of thetestsrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details
- 
Constructor Details- 
Listener- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/server/command/TestCommand$Listener;<init>(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/test/TestSet;)V- intermediary - <init>- Lnet/minecraft/class_4527$class_4528;<init>(Lnet/minecraft/class_2168;Lnet/minecraft/class_4524;)V- official - <init>- Ltk$b;<init>(Lek;Ltf;)V
 
 
- 
- 
Method Details- 
onStarted- Specified by:
- onStartedin interface- TestListener
- Mappings:
- Namespace - Name - Mixin selector - named - onStarted- Lnet/minecraft/test/TestListener;onStarted(Lnet/minecraft/test/GameTestState;)V- intermediary - method_22188- Lnet/minecraft/class_4518;method_22188(Lnet/minecraft/class_4517;)V- official - a- Lsu;a(Lsr;)V
 
- 
onPassed- Specified by:
- onPassedin interface- TestListener
- Mappings:
- Namespace - Name - Mixin selector - named - onPassed- Lnet/minecraft/test/TestListener;onPassed(Lnet/minecraft/test/GameTestState;Lnet/minecraft/test/TestRunContext;)V- intermediary - method_33317- Lnet/minecraft/class_4518;method_33317(Lnet/minecraft/class_4517;Lnet/minecraft/class_4520;)V- official - a- Lsu;a(Lsr;Lsw;)V
 
- 
onFailed- Specified by:
- onFailedin interface- TestListener
- Mappings:
- Namespace - Name - Mixin selector - named - onFailed- Lnet/minecraft/test/TestListener;onFailed(Lnet/minecraft/test/GameTestState;Lnet/minecraft/test/TestRunContext;)V- intermediary - method_22190- Lnet/minecraft/class_4518;method_22190(Lnet/minecraft/class_4517;Lnet/minecraft/class_4520;)V- official - b- Lsu;b(Lsr;Lsw;)V
 
- 
onRetry- Specified by:
- onRetryin interface- TestListener
- Mappings:
- Namespace - Name - Mixin selector - named - onRetry- Lnet/minecraft/test/TestListener;onRetry(Lnet/minecraft/test/GameTestState;Lnet/minecraft/test/GameTestState;Lnet/minecraft/test/TestRunContext;)V- intermediary - method_56216- Lnet/minecraft/class_4518;method_56216(Lnet/minecraft/class_4517;Lnet/minecraft/class_4517;Lnet/minecraft/class_4520;)V- official - a- Lsu;a(Lsr;Lsr;Lsw;)V
 
- 
onFinishedprivate void onFinished()- Mappings:
- Namespace - Name - Mixin selector - named - onFinished- Lnet/minecraft/server/command/TestCommand$Listener;onFinished()V- intermediary - method_56304- Lnet/minecraft/class_4527$class_4528;method_56304()V- official - c- Ltk$b;c()V
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
sourceReturns the value of thesourcerecord component.- Returns:
- the value of the sourcerecord component
 
- 
testsReturns the value of thetestsrecord component.- Returns:
- the value of the testsrecord component
 
 
-