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 tt
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

    • environment

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

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

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

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

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

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

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

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

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

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

      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 Ltt;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • TestData

      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> Ltt;<init>(Ljava/lang/Object;Lame;IIZLdwu;)V
    • TestData

      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> Ltt;<init>(Ljava/lang/Object;Lame;IIZ)V
    • TestData

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

    • applyToEnvironment

      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 Ltt;a(Ljava/util/function/Function;)Ltt;
    • 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. 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

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

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

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

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

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

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

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

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

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

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