aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/events/BakeExtraModelsEvent.kt
blob: 7b74166aee6a5530add7cd3e5ea029e8f8db1ac3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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>()
}