diff options
author | Linnea Gräf <nea@nea.moe> | 2024-05-11 03:28:05 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-05-14 18:45:59 +0200 |
commit | 7682534f6fd139b75f24c79b76098fe05f0fa0fe (patch) | |
tree | 34d94c8fd7b531da128ff0130bf463393e2560e0 /src/main/kotlin/moe/nea/firmament/events/BakeExtraModelsEvent.kt | |
parent | 53dc0c3b0a758ce2afff2637a5a5f22aa1733c56 (diff) | |
download | firmament-7682534f6fd139b75f24c79b76098fe05f0fa0fe.tar.gz firmament-7682534f6fd139b75f24c79b76098fe05f0fa0fe.tar.bz2 firmament-7682534f6fd139b75f24c79b76098fe05f0fa0fe.zip |
Add custom global textures
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/events/BakeExtraModelsEvent.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/events/BakeExtraModelsEvent.kt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/events/BakeExtraModelsEvent.kt b/src/main/kotlin/moe/nea/firmament/events/BakeExtraModelsEvent.kt new file mode 100644 index 0000000..7b74166 --- /dev/null +++ b/src/main/kotlin/moe/nea/firmament/events/BakeExtraModelsEvent.kt @@ -0,0 +1,21 @@ +/* + * SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe> + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package moe.nea.firmament.events + +import java.util.function.Consumer +import net.minecraft.client.util.ModelIdentifier + +class BakeExtraModelsEvent( + private val addModel: Consumer<ModelIdentifier>, +) : FirmamentEvent() { + + fun addModel(modelIdentifier: ModelIdentifier) { + this.addModel.accept(modelIdentifier) + } + + companion object : FirmamentEventBus<BakeExtraModelsEvent>() +} |