Package net.minecraft.test
Record Class TestAttemptConfig
java.lang.Object
java.lang.Record
net.minecraft.test.TestAttemptConfig
- Record Components:
numberOfTries-haltOnFailure-
- Mappings:
Namespace Name official sxintermediary net/minecraft/class_9118named net/minecraft/test/TestAttemptConfigofficial aintermediary comp_2213named numberOfTriesofficial bintermediary comp_2214named haltOnFailure
-
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 official cLsx;c:Lsx;intermediary field_48496Lnet/minecraft/class_9118;field_48496:Lnet/minecraft/class_9118;named ONCELnet/minecraft/test/TestAttemptConfig;ONCE:Lnet/minecraft/test/TestAttemptConfig;
-
-
Constructor Details
-
TestAttemptConfig
public TestAttemptConfig(int int2, boolean bool)
-
-
Method Details
-
once
- Mappings:
Namespace Name Mixin selector official aLsx;a()Lsx;intermediary method_56245Lnet/minecraft/class_9118;method_56245()Lnet/minecraft/class_9118;named onceLnet/minecraft/test/TestAttemptConfig;once()Lnet/minecraft/test/TestAttemptConfig;
-
isDisabled
public boolean isDisabled()- Mappings:
Namespace Name Mixin selector official bLsx;b()Zintermediary method_56247Lnet/minecraft/class_9118;method_56247()Znamed isDisabledLnet/minecraft/test/TestAttemptConfig;isDisabled()Z
-
shouldTestAgain
public boolean shouldTestAgain(int attempt, int successes) - Mappings:
Namespace Name Mixin selector official aLsx;a(II)Zintermediary method_56246Lnet/minecraft/class_9118;method_56246(II)Znamed shouldTestAgainLnet/minecraft/test/TestAttemptConfig;shouldTestAgain(II)Z
-
needsMultipleAttempts
public boolean needsMultipleAttempts()- Mappings:
Namespace Name Mixin selector official cLsx;c()Zintermediary method_56248Lnet/minecraft/class_9118;method_56248()Znamed needsMultipleAttemptsLnet/minecraft/test/TestAttemptConfig;needsMultipleAttempts()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
-