Package net.minecraft.server.command
Record Class TestCommand.Listener
java.lang.Object
java.lang.Record
net.minecraft.server.command.TestCommand.Listener
- Record Components:
world-tests-
- All Implemented Interfaces:
TestListener
- Enclosing class:
TestCommand
public static record TestCommand.Listener(ServerWorld world, TestSet tests)
extends Record
implements TestListener
- Mappings:
Namespace Name official so$cintermediary net/minecraft/class_4527$class_4528named net/minecraft/server/command/TestCommand$Listenerofficial aintermediary comp_2216named worldofficial bintermediary comp_2217named tests
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionListener(ServerWorld world, TestSet tests) Creates an instance of aListenerrecord 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.voidonFailed(GameTestState test, TestRunContext context) private static voidonFinished(ServerWorld world, TestSet tests) voidonPassed(GameTestState test, TestRunContext context) voidonRetry(GameTestState prevState, GameTestState nextState, TestRunContext context) voidonStarted(GameTestState test) tests()Returns the value of thetestsrecord component.final StringtoString()Returns a string representation of this record class.world()Returns the value of theworldrecord component.
-
Field Details
-
Constructor Details
-
Method Details
-
onStarted
- Specified by:
onStartedin interfaceTestListener- Mappings:
Namespace Name Mixin selector official aLrx;a(Lrw;)Vintermediary method_22188Lnet/minecraft/class_4518;method_22188(Lnet/minecraft/class_4517;)Vnamed onStartedLnet/minecraft/test/TestListener;onStarted(Lnet/minecraft/test/GameTestState;)V
-
onPassed
- Specified by:
onPassedin interfaceTestListener- Mappings:
Namespace Name Mixin selector official aLrx;a(Lrw;Lrz;)Vintermediary method_33317Lnet/minecraft/class_4518;method_33317(Lnet/minecraft/class_4517;Lnet/minecraft/class_4520;)Vnamed onPassedLnet/minecraft/test/TestListener;onPassed(Lnet/minecraft/test/GameTestState;Lnet/minecraft/test/TestRunContext;)V
-
onFailed
- Specified by:
onFailedin interfaceTestListener- Mappings:
Namespace Name Mixin selector official bLrx;b(Lrw;Lrz;)Vintermediary method_22190Lnet/minecraft/class_4518;method_22190(Lnet/minecraft/class_4517;Lnet/minecraft/class_4520;)Vnamed onFailedLnet/minecraft/test/TestListener;onFailed(Lnet/minecraft/test/GameTestState;Lnet/minecraft/test/TestRunContext;)V
-
onRetry
- Specified by:
onRetryin interfaceTestListener- Mappings:
Namespace Name Mixin selector official aLrx;a(Lrw;Lrw;Lrz;)Vintermediary method_56216Lnet/minecraft/class_4518;method_56216(Lnet/minecraft/class_4517;Lnet/minecraft/class_4517;Lnet/minecraft/class_4520;)Vnamed onRetryLnet/minecraft/test/TestListener;onRetry(Lnet/minecraft/test/GameTestState;Lnet/minecraft/test/GameTestState;Lnet/minecraft/test/TestRunContext;)V
-
onFinished
- Mappings:
Namespace Name Mixin selector official aLso$c;a(Lapf;Lsh;)Vintermediary method_56304Lnet/minecraft/class_4527$class_4528;method_56304(Lnet/minecraft/class_3218;Lnet/minecraft/class_4524;)Vnamed onFinishedLnet/minecraft/server/command/TestCommand$Listener;onFinished(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/test/TestSet;)V
-
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). -
world
Returns the value of theworldrecord component.- Returns:
- the value of the
worldrecord component
-
tests
Returns the value of thetestsrecord component.- Returns:
- the value of the
testsrecord component
-