From 1606188d9ad65c66e9d873497ea3271dbdadaf77 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 9 Aug 2024 00:49:36 +0200 Subject: Add custom block textures --- .../kotlin/moe/nea/firmament/events/BakeExtraModelsEvent.kt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/main/kotlin/moe/nea/firmament/events/BakeExtraModelsEvent.kt') diff --git a/src/main/kotlin/moe/nea/firmament/events/BakeExtraModelsEvent.kt b/src/main/kotlin/moe/nea/firmament/events/BakeExtraModelsEvent.kt index db073e3..f75bedc 100644 --- a/src/main/kotlin/moe/nea/firmament/events/BakeExtraModelsEvent.kt +++ b/src/main/kotlin/moe/nea/firmament/events/BakeExtraModelsEvent.kt @@ -5,11 +5,16 @@ import java.util.function.Consumer import net.minecraft.client.util.ModelIdentifier class BakeExtraModelsEvent( - private val addModel: Consumer, + private val addItemModel: Consumer, + private val addAnyModel: Consumer, ) : FirmamentEvent() { - fun addModel(modelIdentifier: ModelIdentifier) { - this.addModel.accept(modelIdentifier) + fun addNonItemModel(modelIdentifier: ModelIdentifier) { + this.addAnyModel.accept(modelIdentifier) + } + + fun addItemModel(modelIdentifier: ModelIdentifier) { + this.addItemModel.accept(modelIdentifier) } companion object : FirmamentEventBus() -- cgit