Class TestFunction

java.lang.Object
net.minecraft.test.TestFunction

public class TestFunction extends Object
Mappings:
Namespace Name
official ns
intermediary net/minecraft/class_4529
named net/minecraft/test/TestFunction
  • Field Details

    • batchId

      private final String batchId
      Mappings:
      Namespace Name Mixin selector
      official a Lns;a:Ljava/lang/String;
      intermediary field_20583 Lnet/minecraft/class_4529;field_20583:Ljava/lang/String;
      named batchId Lnet/minecraft/test/TestFunction;batchId:Ljava/lang/String;
    • structurePath

      private final String structurePath
      Mappings:
      Namespace Name Mixin selector
      official b Lns;b:Ljava/lang/String;
      intermediary field_20584 Lnet/minecraft/class_4529;field_20584:Ljava/lang/String;
      named structurePath Lnet/minecraft/test/TestFunction;structurePath:Ljava/lang/String;
    • structureName

      private final String structureName
      Mappings:
      Namespace Name Mixin selector
      official c Lns;c:Ljava/lang/String;
      intermediary field_20585 Lnet/minecraft/class_4529;field_20585:Ljava/lang/String;
      named structureName Lnet/minecraft/test/TestFunction;structureName:Ljava/lang/String;
    • required

      private final boolean required
      Mappings:
      Namespace Name Mixin selector
      official d Lns;d:Z
      intermediary field_20586 Lnet/minecraft/class_4529;field_20586:Z
      named required Lnet/minecraft/test/TestFunction;required:Z
    • maxAttempts

      private final int maxAttempts
      Mappings:
      Namespace Name Mixin selector
      official e Lns;e:I
      intermediary field_27814 Lnet/minecraft/class_4529;field_27814:I
      named maxAttempts Lnet/minecraft/test/TestFunction;maxAttempts:I
    • requiredSuccesses

      private final int requiredSuccesses
      Mappings:
      Namespace Name Mixin selector
      official f Lns;f:I
      intermediary field_27815 Lnet/minecraft/class_4529;field_27815:I
      named requiredSuccesses Lnet/minecraft/test/TestFunction;requiredSuccesses:I
    • starter

      private final Consumer<TestContext> starter
      Mappings:
      Namespace Name Mixin selector
      official g Lns;g:Ljava/util/function/Consumer;
      intermediary field_20587 Lnet/minecraft/class_4529;field_20587:Ljava/util/function/Consumer;
      named starter Lnet/minecraft/test/TestFunction;starter:Ljava/util/function/Consumer;
    • tickLimit

      private final int tickLimit
      Mappings:
      Namespace Name Mixin selector
      official h Lns;h:I
      intermediary field_20588 Lnet/minecraft/class_4529;field_20588:I
      named tickLimit Lnet/minecraft/test/TestFunction;tickLimit:I
    • duration

      private final long duration
      Mappings:
      Namespace Name Mixin selector
      official i Lns;i:J
      intermediary field_21460 Lnet/minecraft/class_4529;field_21460:J
      named duration Lnet/minecraft/test/TestFunction;duration:J
    • rotation

      private final BlockRotation rotation
      Mappings:
      Namespace Name Mixin selector
      official j Lns;j:Lcin;
      intermediary field_25306 Lnet/minecraft/class_4529;field_25306:Lnet/minecraft/class_2470;
      named rotation Lnet/minecraft/test/TestFunction;rotation:Lnet/minecraft/util/BlockRotation;
  • Constructor Details

    • TestFunction

      public TestFunction(String batchId, String structurePath, String structureName, int tickLimit, long duration, boolean required, Consumer<TestContext> starter)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lns;<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
      named <init> Lnet/minecraft/test/TestFunction;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IJZLjava/util/function/Consumer;)V
    • TestFunction

      public TestFunction(String batchId, String structurePath, String structureName, BlockRotation rotation, int tickLimit, long duration, boolean required, Consumer<TestContext> starter)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lns;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcin;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
      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
    • TestFunction

      public TestFunction(String batchId, String structurePath, String structureName, BlockRotation rotation, int tickLimit, long duration, boolean required, int requiredSuccesses, int maxAttempts, Consumer<TestContext> starter)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lns;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcin;IJZIILjava/util/function/Consumer;)V
      intermediary <init> Lnet/minecraft/class_4529;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_2470;IJZIILjava/util/function/Consumer;)V
      named <init> Lnet/minecraft/test/TestFunction;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/util/BlockRotation;IJZIILjava/util/function/Consumer;)V
  • Method Details

    • start

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

      public String getStructurePath()
      Mappings:
      Namespace Name Mixin selector
      official a Lns;a()Ljava/lang/String;
      intermediary method_22296 Lnet/minecraft/class_4529;method_22296()Ljava/lang/String;
      named getStructurePath Lnet/minecraft/test/TestFunction;getStructurePath()Ljava/lang/String;
    • getStructureName

      public String getStructureName()
      Mappings:
      Namespace Name Mixin selector
      official b Lns;b()Ljava/lang/String;
      intermediary method_22298 Lnet/minecraft/class_4529;method_22298()Ljava/lang/String;
      named getStructureName Lnet/minecraft/test/TestFunction;getStructureName()Ljava/lang/String;
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTickLimit

      public int getTickLimit()
      Mappings:
      Namespace Name Mixin selector
      official c Lns;c()I
      intermediary method_22299 Lnet/minecraft/class_4529;method_22299()I
      named getTickLimit Lnet/minecraft/test/TestFunction;getTickLimit()I
    • isRequired

      public boolean isRequired()
      Mappings:
      Namespace Name Mixin selector
      official d Lns;d()Z
      intermediary method_22300 Lnet/minecraft/class_4529;method_22300()Z
      named isRequired Lnet/minecraft/test/TestFunction;isRequired()Z
    • getBatchId

      public String getBatchId()
      Mappings:
      Namespace Name Mixin selector
      official e Lns;e()Ljava/lang/String;
      intermediary method_22301 Lnet/minecraft/class_4529;method_22301()Ljava/lang/String;
      named getBatchId Lnet/minecraft/test/TestFunction;getBatchId()Ljava/lang/String;
    • getDuration

      public long getDuration()
      Mappings:
      Namespace Name Mixin selector
      official f Lns;f()J
      intermediary method_23649 Lnet/minecraft/class_4529;method_23649()J
      named getDuration Lnet/minecraft/test/TestFunction;getDuration()J
    • getRotation

      public BlockRotation getRotation()
      Mappings:
      Namespace Name Mixin selector
      official g Lns;g()Lcin;
      intermediary method_29424 Lnet/minecraft/class_4529;method_29424()Lnet/minecraft/class_2470;
      named getRotation Lnet/minecraft/test/TestFunction;getRotation()Lnet/minecraft/util/BlockRotation;
    • isFlaky

      public boolean isFlaky()
      Mappings:
      Namespace Name Mixin selector
      official h Lns;h()Z
      intermediary method_32257 Lnet/minecraft/class_4529;method_32257()Z
      named isFlaky Lnet/minecraft/test/TestFunction;isFlaky()Z
    • getMaxAttempts

      public int getMaxAttempts()
      Mappings:
      Namespace Name Mixin selector
      official i Lns;i()I
      intermediary method_32258 Lnet/minecraft/class_4529;method_32258()I
      named getMaxAttempts Lnet/minecraft/test/TestFunction;getMaxAttempts()I
    • getRequiredSuccesses

      public int getRequiredSuccesses()
      Mappings:
      Namespace Name Mixin selector
      official j Lns;j()I
      intermediary method_32259 Lnet/minecraft/class_4529;method_32259()I
      named getRequiredSuccesses Lnet/minecraft/test/TestFunction;getRequiredSuccesses()I