aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/features/texturepack/CustomModelOverrideParser.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-03-03 18:04:45 +0100
committerLinnea Gräf <nea@nea.moe>2024-03-03 18:04:45 +0100
commitb025b06b6b799b16cfcfb26ee8ffad27879a1bfb (patch)
tree42053f84a198dd826235b403caa63f351897debf /src/main/kotlin/moe/nea/firmament/features/texturepack/CustomModelOverrideParser.kt
parent3bfec3033e9d905514d5c1c6c62953c2a1646af0 (diff)
downloadfirmament-b025b06b6b799b16cfcfb26ee8ffad27879a1bfb.tar.gz
firmament-b025b06b6b799b16cfcfb26ee8ffad27879a1bfb.tar.bz2
firmament-b025b06b6b799b16cfcfb26ee8ffad27879a1bfb.zip
Add not predicate and docs to custom predicates
[no changelog]
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/features/texturepack/CustomModelOverrideParser.kt')
-rw-r--r--src/main/kotlin/moe/nea/firmament/features/texturepack/CustomModelOverrideParser.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/features/texturepack/CustomModelOverrideParser.kt b/src/main/kotlin/moe/nea/firmament/features/texturepack/CustomModelOverrideParser.kt
index ac62eaa..ad1f436 100644
--- a/src/main/kotlin/moe/nea/firmament/features/texturepack/CustomModelOverrideParser.kt
+++ b/src/main/kotlin/moe/nea/firmament/features/texturepack/CustomModelOverrideParser.kt
@@ -23,6 +23,7 @@ object CustomModelOverrideParser {
registerPredicateParser("lore", LorePredicate.Parser)
registerPredicateParser("all", AndPredicate.Parser)
registerPredicateParser("any", OrPredicate.Parser)
+ registerPredicateParser("not", NotPredicate.Parser)
}
fun parsePredicates(predicates: JsonObject): List<FirmamentModelPredicate> {