Deprecate GatherDataEvent.validate() as validation always happens. And made ExistingFileHelper always function. Closes #10516

This commit is contained in:
LexManos committed 2025-05-21 23:42:44 -07:00
1 parent 4ef7fe8bd8
commit a1c275df46
4 files changed
+6 -5

No files matched your search

@@ -159,9 +159,6 @@ public class ExistingFileHelper {
* otherwise
*/
public boolean exists(ResourceLocation loc, PackType packType) {
if (!enable) {
return true;
}
return generated.get(packType).contains(loc) || getManager(packType).getResource(loc).isPresent();
}
@@ -261,7 +258,9 @@ public class ExistingFileHelper {
/**
* @return {@code true} if validation is enabled, {@code false} otherwise
* @deprecated Validation is always enabled, check things as you deem fit.
*/
@Deprecated(forRemoval = true, since = "1.21.5")
public boolean isEnabled() {
return enable;
}
@@ -52,6 +52,7 @@ public final class GatherDataEvent extends Event implements IModBusEvent
public boolean includeClient() { return this.config.client; }
public boolean includeDev() { return this.config.dev; }
public boolean includeReports() { return this.config.reports; }
@Deprecated(forRemoval = true, since = "1.21.5") // Validation is always enabled, check things as you deem fit.
public boolean validate() { return this.config.validate; }
public static final class DataGeneratorConfig {
@@ -63,6 +64,7 @@ public final class GatherDataEvent extends Event implements IModBusEvent
private final boolean client;
private final boolean dev;
private final boolean reports;
@Deprecated(forRemoval = true, since = "1.21.5") // Validation is always enabled, check things as you deem fit.
private final boolean validate;
private final boolean flat;
private final List<DataGenerator> generators = new ArrayList<>();