diff options
author | Linnea Gräf <nea@nea.moe> | 2024-11-17 19:41:18 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-11-17 19:41:18 +0100 |
commit | 86cbf9d4221e85dec14300c11393abb325bffcef (patch) | |
tree | dc86b43ae33e92a7f7ad553e6a03b6853d6b0ded /src/main/kotlin/features/texturepack/BakedOverrideData.kt | |
parent | 6045077025629cabc1831a281fec532faa7781dd (diff) | |
download | Firmament-86cbf9d4221e85dec14300c11393abb325bffcef.tar.gz Firmament-86cbf9d4221e85dec14300c11393abb325bffcef.tar.bz2 Firmament-86cbf9d4221e85dec14300c11393abb325bffcef.zip |
fix: Item predicates not applying unless a vanilla predicate is present
Diffstat (limited to 'src/main/kotlin/features/texturepack/BakedOverrideData.kt')
-rw-r--r-- | src/main/kotlin/features/texturepack/BakedOverrideData.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/kotlin/features/texturepack/BakedOverrideData.kt b/src/main/kotlin/features/texturepack/BakedOverrideData.kt index c012883..e9391f1 100644 --- a/src/main/kotlin/features/texturepack/BakedOverrideData.kt +++ b/src/main/kotlin/features/texturepack/BakedOverrideData.kt @@ -1,8 +1,14 @@ package moe.nea.firmament.features.texturepack +import net.minecraft.client.render.model.json.ModelOverrideList + interface BakedOverrideData { fun getFirmamentOverrides(): Array<FirmamentModelPredicate>? fun setFirmamentOverrides(overrides: Array<FirmamentModelPredicate>?) - + companion object{ + @Suppress("CAST_NEVER_SUCCEEDS") + @JvmStatic + fun cast(bakedOverride: ModelOverrideList.BakedOverride): BakedOverrideData = bakedOverride as BakedOverrideData + } } |