Record Class TestAttemptConfig

java.lang.Object
java.lang.Record
net.minecraft.test.TestAttemptConfig
Record Components:
numberOfTries -
haltOnFailure -

public record TestAttemptConfig(int numberOfTries, boolean haltOnFailure) extends Record
Mappings:
Namespace Name
named net/minecraft/test/TestAttemptConfig
intermediary net/minecraft/class_9118
official ub
named numberOfTries
intermediary comp_2213
official a
named haltOnFailure
intermediary comp_2214
official b
  • Field Details

    • numberOfTries

      private final int numberOfTries
      The field for the numberOfTries record component.
    • haltOnFailure

      private final boolean haltOnFailure
      The field for the haltOnFailure record component.
    • ONCE

      private static final TestAttemptConfig ONCE
      Mappings:
      Namespace Name Mixin selector
      named ONCE Lnet/minecraft/test/TestAttemptConfig;ONCE:Lnet/minecraft/test/TestAttemptConfig;
      intermediary field_48496 Lnet/minecraft/class_9118;field_48496:Lnet/minecraft/class_9118;
      official c Lub;c:Lub;
  • Constructor Details

    • TestAttemptConfig

      public TestAttemptConfig(int int2, boolean bool)
  • Method Details

    • once

      public static TestAttemptConfig once()
      Mappings:
      Namespace Name Mixin selector
      named once Lnet/minecraft/test/TestAttemptConfig;once()Lnet/minecraft/test/TestAttemptConfig;
      intermediary method_56245 Lnet/minecraft/class_9118;method_56245()Lnet/minecraft/class_9118;
      official a Lub;a()Lub;
    • isDisabled

      public boolean isDisabled()
      Mappings:
      Namespace Name Mixin selector
      named isDisabled Lnet/minecraft/test/TestAttemptConfig;isDisabled()Z
      intermediary method_56247 Lnet/minecraft/class_9118;method_56247()Z
      official b Lub;b()Z
    • shouldTestAgain

      public boolean shouldTestAgain(int attempt, int successes)
      Mappings:
      Namespace Name Mixin selector
      named shouldTestAgain Lnet/minecraft/test/TestAttemptConfig;shouldTestAgain(II)Z
      intermediary method_56246 Lnet/minecraft/class_9118;method_56246(II)Z
      official a Lub;a(II)Z
    • needsMultipleAttempts

      public boolean needsMultipleAttempts()
      Mappings:
      Namespace Name Mixin selector
      named needsMultipleAttempts Lnet/minecraft/test/TestAttemptConfig;needsMultipleAttempts()Z
      intermediary method_56248 Lnet/minecraft/class_9118;method_56248()Z
      official c Lub;c()Z
    • 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. All components in this record class 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.
    • numberOfTries

      public int numberOfTries()
      Returns the value of the numberOfTries record component.
      Returns:
      the value of the numberOfTries record component
    • haltOnFailure

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