diff options
author | Linnea Gräf <nea@nea.moe> | 2024-08-09 00:49:36 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-08-09 02:20:41 +0200 |
commit | 1606188d9ad65c66e9d873497ea3271dbdadaf77 (patch) | |
tree | a33ea87c76bd672fe3902455742ba42ae8c91ee1 /src/main/kotlin/moe/nea/firmament/events | |
parent | 2a023d0a8d4e9af1dff21ea1bc997dfa0c686b14 (diff) | |
download | Firmament-1606188d9ad65c66e9d873497ea3271dbdadaf77.tar.gz Firmament-1606188d9ad65c66e9d873497ea3271dbdadaf77.tar.bz2 Firmament-1606188d9ad65c66e9d873497ea3271dbdadaf77.zip |
Add custom block textures
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/events')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/events/BakeExtraModelsEvent.kt | 11 |
1 files changed, 8 insertions, 3 deletions
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<ModelIdentifier>, + private val addItemModel: Consumer<ModelIdentifier>, + private val addAnyModel: Consumer<ModelIdentifier>, ) : 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<BakeExtraModelsEvent>() |