Record Class TestEnvironmentDefinition.AllOf

java.lang.Object
java.lang.Record
net.minecraft.test.TestEnvironmentDefinition.AllOf
Record Components:
definitions -
All Implemented Interfaces:
TestEnvironmentDefinition
Enclosing interface:
TestEnvironmentDefinition

public static record TestEnvironmentDefinition.AllOf(List<RegistryEntry<TestEnvironmentDefinition>> definitions) extends Record implements TestEnvironmentDefinition
Mappings:
Namespace Name
named net/minecraft/test/TestEnvironmentDefinition$AllOf
intermediary net/minecraft/class_10665$class_10666
official tm$a
named definitions
intermediary comp_3549
official d
  • Field Details Link icon

    • definitions Link icon

      private final List<RegistryEntry<TestEnvironmentDefinition>> definitions
      The field for the definitions record component.
    • CODEC Link icon

      public static final com.mojang.serialization.MapCodec<TestEnvironmentDefinition.AllOf> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/test/TestEnvironmentDefinition$AllOf;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_56202 Lnet/minecraft/class_10665$class_10666;field_56202:Lcom/mojang/serialization/MapCodec;
      official c Ltm$a;c:Lcom/mojang/serialization/MapCodec;
  • Constructor Details Link icon

    • AllOf Link icon

      public AllOf(TestEnvironmentDefinition[] definitionTypes)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/test/TestEnvironmentDefinition$AllOf;<init>([Lnet/minecraft/test/TestEnvironmentDefinition;)V
      intermediary <init> Lnet/minecraft/class_10665$class_10666;<init>([Lnet/minecraft/class_10665;)V
      official <init> Ltm$a;<init>([Ltm;)V
    • AllOf Link icon

  • Method Details Link icon

    • setup Link icon

      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 Ltm;a(Lasb;)V
    • teardown Link icon

      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 Ltm;b(Lasb;)V
    • getCodec Link icon

      public com.mojang.serialization.MapCodec<TestEnvironmentDefinition.AllOf> 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 Ltm;a()Lcom/mojang/serialization/MapCodec;
    • toString Link icon

      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 Link icon

      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 Link icon

      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.
    • definitions Link icon

      Returns the value of the definitions record component.
      Returns:
      the value of the definitions record component