Package net.minecraft.test
Record Class TestAttemptConfig
java.lang.Object
java.lang.Record
net.minecraft.test.TestAttemptConfig
- Record Components:
numberOfTries
-haltOnFailure
-
- Mappings:
Namespace Name named net/minecraft/test/TestAttemptConfig
intermediary net/minecraft/class_9118
official uf
named numberOfTries
intermediary comp_2213
official a
named haltOnFailure
intermediary comp_2214
official b
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
The field for thehaltOnFailure
record component.private final int
The field for thenumberOfTries
record component.private static final TestAttemptConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of thehaltOnFailure
record component.final int
hashCode()
Returns a hash code value for this object.boolean
boolean
int
Returns the value of thenumberOfTries
record component.static TestAttemptConfig
once()
boolean
shouldTestAgain
(int attempt, int successes) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
numberOfTries
private final int numberOfTriesThe field for thenumberOfTries
record component. -
haltOnFailure
private final boolean haltOnFailureThe field for thehaltOnFailure
record component. -
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
Luf;c:Luf;
-
-
Constructor Details
-
TestAttemptConfig
public TestAttemptConfig(int int2, boolean bool)
-
-
Method Details
-
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
Luf;a()Luf;
-
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
Luf;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
Luf;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
Luf;c()Z
-
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. -
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. -
equals
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 '=='. -
numberOfTries
public int numberOfTries()Returns the value of thenumberOfTries
record component.- Returns:
- the value of the
numberOfTries
record component
-
haltOnFailure
public boolean haltOnFailure()Returns the value of thehaltOnFailure
record component.- Returns:
- the value of the
haltOnFailure
record component
-