diff --git a/gradle.properties b/gradle.properties index 348b999..1f8c3c5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ org.gradle.debug=false # Version -mod_version=1.2.08 +mod_version=1.2.09 # Mod mod_id=zenith diff --git a/src/main/java/net/zepalesque/zenith/api/packconfig/PackConfig.java b/src/main/java/net/zepalesque/zenith/api/packconfig/PackConfig.java index ed77192..08c61e4 100644 --- a/src/main/java/net/zepalesque/zenith/api/packconfig/PackConfig.java +++ b/src/main/java/net/zepalesque/zenith/api/packconfig/PackConfig.java @@ -58,14 +58,26 @@ public > T register(T config, String p return config; } + public > T register(T config, String id, Predicate predicate) { + return register(config, "", id, predicate); + } + public > T register(T config, String path, String id, boolean predicate) { return register(config, path, id, bool -> bool == predicate); } + public > T register(T config, String id, boolean predicate) { + return register(config, "", id, predicate); + } + public > T register(T config, String path, String id) { return register(config, path, id, true); } + public > T register(T config, String id) { + return register(config, "", id); + } + public void setup(AddPackFindersEvent event) { if (event.getPackType() == this.type) {