Record Class TestData<EnvironmentType>

java.lang.Object
java.lang.Record
net.minecraft.test.TestData<EnvironmentType>
Record Components:
environment -
structure -
maxTicks -
setupTicks -
required -
rotation -
manualOnly -
maxAttempts -
requiredSuccesses -
skyAccess -

public record TestData<EnvironmentType>(EnvironmentType environment, Identifier structure, int maxTicks, int setupTicks, boolean required, BlockRotation rotation, boolean manualOnly, int maxAttempts, int requiredSuccesses, boolean skyAccess) extends Record
Mappings:
Namespace Name
named net/minecraft/test/TestData
intermediary net/minecraft/class_10664
official tl
named environment
intermediary comp_3539
official b
named structure
intermediary comp_3540
official c
named maxTicks
intermediary comp_3541
official d
named setupTicks
intermediary comp_3542
official e
named required
intermediary comp_3543
official f
named rotation
intermediary comp_3544
official g
named manualOnly
intermediary comp_3545
official h
named maxAttempts
intermediary comp_3546
official i
named requiredSuccesses
intermediary comp_3547
official j
named skyAccess
intermediary comp_3548
official k
  • Field Details Link icon

    • environment Link icon

      private final EnvironmentType environment
      The field for the environment record component.
    • structure Link icon

      private final Identifier structure
      The field for the structure record component.
    • maxTicks Link icon

      private final int maxTicks
      The field for the maxTicks record component.
    • setupTicks Link icon

      private final int setupTicks
      The field for the setupTicks record component.
    • required Link icon

      private final boolean required
      The field for the required record component.
    • rotation Link icon

      private final BlockRotation rotation
      The field for the rotation record component.
    • manualOnly Link icon

      private final boolean manualOnly
      The field for the manualOnly record component.
    • maxAttempts Link icon

      private final int maxAttempts
      The field for the maxAttempts record component.
    • requiredSuccesses Link icon

      private final int requiredSuccesses
      The field for the requiredSuccesses record component.
    • skyAccess Link icon

      private final boolean skyAccess
      The field for the skyAccess record component.
    • CODEC Link icon

      public static final com.mojang.serialization.MapCodec<TestData<RegistryEntry<TestEnvironmentDefinition>>> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/test/TestData;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_56199 Lnet/minecraft/class_10664;field_56199:Lcom/mojang/serialization/MapCodec;
      official a Ltl;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details Link icon

    • TestData Link icon

      public TestData(EnvironmentType environment, Identifier structure, int maxTicks, int setupTicks, boolean required, BlockRotation rotation)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/test/TestData;<init>(Ljava/lang/Object;Lnet/minecraft/util/Identifier;IIZLnet/minecraft/util/BlockRotation;)V
      intermediary <init> Lnet/minecraft/class_10664;<init>(Ljava/lang/Object;Lnet/minecraft/class_2960;IIZLnet/minecraft/class_2470;)V
      official <init> Ltl;<init>(Ljava/lang/Object;Lalr;IIZLdui;)V
    • TestData Link icon

      public TestData(EnvironmentType environment, Identifier structure, int maxTicks, int setupTicks, boolean required)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/test/TestData;<init>(Ljava/lang/Object;Lnet/minecraft/util/Identifier;IIZ)V
      intermediary <init> Lnet/minecraft/class_10664;<init>(Ljava/lang/Object;Lnet/minecraft/class_2960;IIZ)V
      official <init> Ltl;<init>(Ljava/lang/Object;Lalr;IIZ)V
    • TestData Link icon

      public TestData(EnvironmentType environmentType, Identifier identifier, int int2, int int3, boolean bool, BlockRotation blockRotation, boolean bool2, int int4, int int5, boolean bool3)
  • Method Details Link icon

    • applyToEnvironment Link icon

      public <T> TestData<T> applyToEnvironment(Function<EnvironmentType,T> environmentFunction)
      Mappings:
      Namespace Name Mixin selector
      named applyToEnvironment Lnet/minecraft/test/TestData;applyToEnvironment(Ljava/util/function/Function;)Lnet/minecraft/test/TestData;
      intermediary method_67049 Lnet/minecraft/class_10664;method_67049(Ljava/util/function/Function;)Lnet/minecraft/class_10664;
      official a Ltl;a(Ljava/util/function/Function;)Ltl;
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • environment Link icon

      public EnvironmentType environment()
      Returns the value of the environment record component.
      Returns:
      the value of the environment record component
    • structure Link icon

      public Identifier structure()
      Returns the value of the structure record component.
      Returns:
      the value of the structure record component
    • maxTicks Link icon

      public int maxTicks()
      Returns the value of the maxTicks record component.
      Returns:
      the value of the maxTicks record component
    • setupTicks Link icon

      public int setupTicks()
      Returns the value of the setupTicks record component.
      Returns:
      the value of the setupTicks record component
    • required Link icon

      public boolean required()
      Returns the value of the required record component.
      Returns:
      the value of the required record component
    • rotation Link icon

      public BlockRotation rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component
    • manualOnly Link icon

      public boolean manualOnly()
      Returns the value of the manualOnly record component.
      Returns:
      the value of the manualOnly record component
    • maxAttempts Link icon

      public int maxAttempts()
      Returns the value of the maxAttempts record component.
      Returns:
      the value of the maxAttempts record component
    • requiredSuccesses Link icon

      public int requiredSuccesses()
      Returns the value of the requiredSuccesses record component.
      Returns:
      the value of the requiredSuccesses record component
    • skyAccess Link icon

      public boolean skyAccess()
      Returns the value of the skyAccess record component.
      Returns:
      the value of the skyAccess record component