diff options
Diffstat (limited to 'src/main/kotlin/features/texturepack/ModelOverrideData.kt')
-rw-r--r-- | src/main/kotlin/features/texturepack/ModelOverrideData.kt | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/main/kotlin/features/texturepack/ModelOverrideData.kt b/src/main/kotlin/features/texturepack/ModelOverrideData.kt index 1585bd7..29d9192 100644 --- a/src/main/kotlin/features/texturepack/ModelOverrideData.kt +++ b/src/main/kotlin/features/texturepack/ModelOverrideData.kt @@ -1,7 +1,15 @@ - package moe.nea.firmament.features.texturepack +import net.minecraft.client.render.model.json.ModelOverride + interface ModelOverrideData { - fun getFirmamentOverrides(): Array<FirmamentModelPredicate>? - fun setFirmamentOverrides(overrides: Array<FirmamentModelPredicate>?) + companion object { + + @JvmStatic + @Suppress("CAST_NEVER_SUCCEEDS") + fun cast(override: ModelOverride) = override as ModelOverrideData + } + + fun getFirmamentOverrides(): Array<FirmamentModelPredicate>? + fun setFirmamentOverrides(overrides: Array<FirmamentModelPredicate>?) } |