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
named net/minecraft/server/command/TestCommand$Listener
intermediary net/minecraft/class_4527$class_4528
official tp$c
named world
intermediary comp_2216
official a
named tests
intermediary comp_2217
official b
  • Field Details

    • world

      private final ServerWorld world
      The field for the world record component.
    • tests

      private final TestSet tests
      The field for the tests record component.
  • Constructor Details

    • Listener

      public Listener(ServerWorld world, TestSet tests)
      Creates an instance of a Listener record class.
      Parameters:
      world - the value for the world record component
      tests - the value for the tests record component
  • Method Details

    • onStarted

      public void onStarted(GameTestState test)
      Specified by:
      onStarted in 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 Lsy;a(Lsx;)V
    • onPassed

      public void onPassed(GameTestState test, TestRunContext context)
      Specified by:
      onPassed in 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 Lsy;a(Lsx;Lta;)V
    • onFailed

      public void onFailed(GameTestState test, TestRunContext context)
      Specified by:
      onFailed in 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 Lsy;b(Lsx;Lta;)V
    • onRetry

      public void onRetry(GameTestState prevState, GameTestState nextState, TestRunContext context)
      Specified by:
      onRetry in 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 Lsy;a(Lsx;Lsx;Lta;)V
    • onFinished

      private static void onFinished(ServerWorld world, TestSet tests)
      Mappings:
      Namespace Name Mixin selector
      named onFinished Lnet/minecraft/server/command/TestCommand$Listener;onFinished(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/test/TestSet;)V
      intermediary method_56304 Lnet/minecraft/class_4527$class_4528;method_56304(Lnet/minecraft/class_3218;Lnet/minecraft/class_4524;)V
      official a Ltp$c;a(Laqu;Lti;)V
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • world

      public ServerWorld world()
      Returns the value of the world record component.
      Returns:
      the value of the world record component
    • tests

      public TestSet tests()
      Returns the value of the tests record component.
      Returns:
      the value of the tests record component