soiz1's picture
Upload folder using huggingface_hub
d46f4a3 verified
package net.minecraft.gametest.framework;
public record RetryOptions(int numberOfTries, boolean haltOnFailure) {
private static final RetryOptions NO_RETRIES = new RetryOptions(1, true);
public static RetryOptions noRetries() {
return NO_RETRIES;
}
public boolean unlimitedTries() {
return this.numberOfTries < 1;
}
public boolean hasTriesLeft(int p_334342_, int p_328826_) {
boolean flag = p_334342_ != p_328826_;
boolean flag1 = this.unlimitedTries() || p_334342_ < this.numberOfTries;
return flag1 && (!flag || !this.haltOnFailure);
}
public boolean hasRetries() {
return this.numberOfTries != 1;
}
}