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/TestAttemptConfigintermediary net/minecraft/class_9118official tknamed numberOfTriesintermediary comp_2213official anamed haltOnFailureintermediary comp_2214official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thehaltOnFailurerecord component.private final intThe field for thenumberOfTriesrecord component.private static final TestAttemptConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehaltOnFailurerecord component.final inthashCode()Returns a hash code value for this object.booleanbooleanintReturns the value of thenumberOfTriesrecord component.static TestAttemptConfigonce()booleanshouldTestAgain(int attempt, int successes) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
numberOfTries
private final int numberOfTriesThe field for thenumberOfTriesrecord component. -
haltOnFailure
private final boolean haltOnFailureThe field for thehaltOnFailurerecord component. -
ONCE
- Mappings:
Namespace Name Mixin selector named ONCELnet/minecraft/test/TestAttemptConfig;ONCE:Lnet/minecraft/test/TestAttemptConfig;intermediary field_48496Lnet/minecraft/class_9118;field_48496:Lnet/minecraft/class_9118;official cLtk;c:Ltk;
-
-
Constructor Details
-
TestAttemptConfig
public TestAttemptConfig(int int2, boolean bool)
-
-
Method Details
-
once
- Mappings:
Namespace Name Mixin selector named onceLnet/minecraft/test/TestAttemptConfig;once()Lnet/minecraft/test/TestAttemptConfig;intermediary method_56245Lnet/minecraft/class_9118;method_56245()Lnet/minecraft/class_9118;official aLtk;a()Ltk;
-
isDisabled
public boolean isDisabled()- Mappings:
Namespace Name Mixin selector named isDisabledLnet/minecraft/test/TestAttemptConfig;isDisabled()Zintermediary method_56247Lnet/minecraft/class_9118;method_56247()Zofficial bLtk;b()Z
-
shouldTestAgain
public boolean shouldTestAgain(int attempt, int successes) - Mappings:
Namespace Name Mixin selector named shouldTestAgainLnet/minecraft/test/TestAttemptConfig;shouldTestAgain(II)Zintermediary method_56246Lnet/minecraft/class_9118;method_56246(II)Zofficial aLtk;a(II)Z
-
needsMultipleAttempts
public boolean needsMultipleAttempts()- Mappings:
Namespace Name Mixin selector named needsMultipleAttemptsLnet/minecraft/test/TestAttemptConfig;needsMultipleAttempts()Zintermediary method_56248Lnet/minecraft/class_9118;method_56248()Zofficial cLtk;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 thenumberOfTriesrecord component.- Returns:
- the value of the
numberOfTriesrecord component
-
haltOnFailure
public boolean haltOnFailure()Returns the value of thehaltOnFailurerecord component.- Returns:
- the value of the
haltOnFailurerecord component
-