Record Class TestFunction

java.lang.Object
java.lang.Record
net.minecraft.test.TestFunction
Record Components:
batchId -
templatePath -
templateName -
rotation -
tickLimit -
setupTicks -
required -
manualOnly -
maxAttempts -
requiredSuccesses -
skyAccess -
starter -

public record TestFunction(String batchId, String templatePath, String templateName, BlockRotation rotation, int tickLimit, long setupTicks, boolean required, boolean manualOnly, int maxAttempts, int requiredSuccesses, boolean skyAccess, Consumer<TestContext> starter) extends Record
Mappings:
Namespace Name
named net/minecraft/test/TestFunction
intermediary net/minecraft/class_4529
official ui
named batchId
intermediary comp_2218
official a
named templatePath
intermediary comp_2219
official b
named templateName
intermediary comp_2220
official c
named rotation
intermediary comp_2221
official d
named tickLimit
intermediary comp_2222
official e
named setupTicks
intermediary comp_2223
official f
named required
intermediary comp_2224
official g
named manualOnly
intermediary comp_2445
official h
named maxAttempts
intermediary comp_2225
official i
named requiredSuccesses
intermediary comp_2226
official j
named skyAccess
intermediary comp_2362
official k
named starter
intermediary comp_2227
official l
  • Field Details

    • batchId

      private final String batchId
      The field for the batchId record component.
    • templatePath

      private final String templatePath
      The field for the templatePath record component.
    • templateName

      private final String templateName
      The field for the templateName record component.
    • rotation

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

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

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

      private final boolean required
      The field for the required 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.
    • starter

      private final Consumer<TestContext> starter
      The field for the starter record component.
  • Constructor Details

    • TestFunction

      public TestFunction(String batchId, String templatePath, String templateName, int tickLimit, long duration, boolean required, Consumer<TestContext> starter)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/test/TestFunction;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IJZLjava/util/function/Consumer;)V
      intermediary <init> Lnet/minecraft/class_4529;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IJZLjava/util/function/Consumer;)V
      official <init> Lui;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IJZLjava/util/function/Consumer;)V
    • TestFunction

      public TestFunction(String batchId, String templatePath, String templateName, BlockRotation rotation, int tickLimit, long setupTicks, boolean required, Consumer<TestContext> starter)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/test/TestFunction;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/util/BlockRotation;IJZLjava/util/function/Consumer;)V
      intermediary <init> Lnet/minecraft/class_4529;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_2470;IJZLjava/util/function/Consumer;)V
      official <init> Lui;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldln;IJZLjava/util/function/Consumer;)V
    • TestFunction

      public TestFunction(String batchId, String templatePath, String templateName, BlockRotation rotation, int tickLimit, long duration, boolean required, boolean bool, int int2, int int3, boolean bool2, Consumer<TestContext> consumer)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/test/TestFunction;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/util/BlockRotation;IJZZIIZLjava/util/function/Consumer;)V
      intermediary <init> Lnet/minecraft/class_4529;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_2470;IJZZIIZLjava/util/function/Consumer;)V
      official <init> Lui;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ldln;IJZZIIZLjava/util/function/Consumer;)V
  • Method Details

    • start

      public void start(TestContext context)
      Mappings:
      Namespace Name Mixin selector
      named start Lnet/minecraft/test/TestFunction;start(Lnet/minecraft/test/TestContext;)V
      intermediary method_22297 Lnet/minecraft/class_4529;method_22297(Lnet/minecraft/class_4516;)V
      official a Lui;a(Ltn;)V
    • toString

      public 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
    • isFlaky

      public boolean isFlaky()
      Mappings:
      Namespace Name Mixin selector
      named isFlaky Lnet/minecraft/test/TestFunction;isFlaky()Z
      intermediary method_32257 Lnet/minecraft/class_4529;method_32257()Z
      official a Lui;a()Z
    • 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.
    • batchId

      public String batchId()
      Returns the value of the batchId record component.
      Returns:
      the value of the batchId record component
    • templatePath

      public String templatePath()
      Returns the value of the templatePath record component.
      Returns:
      the value of the templatePath record component
    • templateName

      public String templateName()
      Returns the value of the templateName record component.
      Returns:
      the value of the templateName record component
    • rotation

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

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

      public long 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
    • 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
    • starter

      public Consumer<TestContext> starter()
      Returns the value of the starter record component.
      Returns:
      the value of the starter record component