Record Class TestEnvironmentDefinition.Function

java.lang.Object
java.lang.Record
net.minecraft.test.TestEnvironmentDefinition.Function
Record Components:
setupFunction -
teardownFunction -
All Implemented Interfaces:
TestEnvironmentDefinition
Enclosing interface:
TestEnvironmentDefinition

public static record TestEnvironmentDefinition.Function(Optional<Identifier> setupFunction, Optional<Identifier> teardownFunction) extends Record implements TestEnvironmentDefinition
Mappings:
Namespace Name
named net/minecraft/test/TestEnvironmentDefinition$Function
intermediary net/minecraft/class_10665$class_10667
official tu$b
named setupFunction
intermediary comp_3550
official d
named teardownFunction
intermediary comp_3551
official e
  • Field Details

    • setupFunction

      private final Optional<Identifier> setupFunction
      The field for the setupFunction record component.
    • teardownFunction

      private final Optional<Identifier> teardownFunction
      The field for the teardownFunction record component.
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/test/TestEnvironmentDefinition$Function;LOGGER:Lorg/slf4j/Logger;
      intermediary field_56204 Lnet/minecraft/class_10665$class_10667;field_56204:Lorg/slf4j/Logger;
      official f Ltu$b;f:Lorg/slf4j/Logger;
    • CODEC

      public static final com.mojang.serialization.MapCodec<TestEnvironmentDefinition.Function> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/test/TestEnvironmentDefinition$Function;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_56203 Lnet/minecraft/class_10665$class_10667;field_56203:Lcom/mojang/serialization/MapCodec;
      official c Ltu$b;c:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • setup

      public void setup(ServerWorld world)
      Specified by:
      setup in interface TestEnvironmentDefinition
      Mappings:
      Namespace Name Mixin selector
      named setup Lnet/minecraft/test/TestEnvironmentDefinition;setup(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_67051 Lnet/minecraft/class_10665;method_67051(Lnet/minecraft/class_3218;)V
      official a Ltu;a(Laub;)V
    • teardown

      public void teardown(ServerWorld world)
      Specified by:
      teardown in interface TestEnvironmentDefinition
      Mappings:
      Namespace Name Mixin selector
      named teardown Lnet/minecraft/test/TestEnvironmentDefinition;teardown(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_67054 Lnet/minecraft/class_10665;method_67054(Lnet/minecraft/class_3218;)V
      official b Ltu;b(Laub;)V
    • executeFunction

      private static void executeFunction(ServerWorld world, Identifier functionId)
      Mappings:
      Namespace Name Mixin selector
      named executeFunction Lnet/minecraft/test/TestEnvironmentDefinition$Function;executeFunction(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/Identifier;)V
      intermediary method_67058 Lnet/minecraft/class_10665$class_10667;method_67058(Lnet/minecraft/class_3218;Lnet/minecraft/class_2960;)V
      official a Ltu$b;a(Laub;Lame;)V
    • getCodec

      public com.mojang.serialization.MapCodec<TestEnvironmentDefinition.Function> getCodec()
      Specified by:
      getCodec in interface TestEnvironmentDefinition
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/test/TestEnvironmentDefinition;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_67050 Lnet/minecraft/class_10665;method_67050()Lcom/mojang/serialization/MapCodec;
      official a Ltu;a()Lcom/mojang/serialization/MapCodec;
    • 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.
    • setupFunction

      public Optional<Identifier> setupFunction()
      Returns the value of the setupFunction record component.
      Returns:
      the value of the setupFunction record component
    • teardownFunction

      public Optional<Identifier> teardownFunction()
      Returns the value of the teardownFunction record component.
      Returns:
      the value of the teardownFunction record component