aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/events/BakeExtraModelsEvent.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-31 17:51:29 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-31 17:51:29 +0100
commitbb124fe91d310d08fbf17ea8972d9e7b8b89b319 (patch)
treee392cc41284d06cdcd78eb073ee8212d620ee757 /src/main/kotlin/events/BakeExtraModelsEvent.kt
parenta50de1601873d5c750c88bef9468b24fdd923ef0 (diff)
downloadFirmament-bb124fe91d310d08fbf17ea8972d9e7b8b89b319.tar.gz
Firmament-bb124fe91d310d08fbf17ea8972d9e7b8b89b319.tar.bz2
Firmament-bb124fe91d310d08fbf17ea8972d9e7b8b89b319.zip
fix: Dungeon swords not being recognized for reforges
Diffstat (limited to 'src/main/kotlin/events/BakeExtraModelsEvent.kt')
-rw-r--r--src/main/kotlin/events/BakeExtraModelsEvent.kt29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/main/kotlin/events/BakeExtraModelsEvent.kt b/src/main/kotlin/events/BakeExtraModelsEvent.kt
deleted file mode 100644
index 35bfecb..0000000
--- a/src/main/kotlin/events/BakeExtraModelsEvent.kt
+++ /dev/null
@@ -1,29 +0,0 @@
-package moe.nea.firmament.events
-
-import java.util.function.BiConsumer
-import net.minecraft.client.item.ItemAssetsLoader
-import net.minecraft.client.render.model.ReferencedModelsCollector
-import net.minecraft.client.util.ModelIdentifier
-import net.minecraft.util.Identifier
-
-// TODO: This event may be removed now since ItemAssetsLoader seems to load all item models now (probably to cope with servers setting the item_model component). Check whether this also applies to blocks now.
-//@Deprecated(level = DeprecationLevel.ERROR, message = "This is no longer needed, since ItemAssetsLoader loads all item models.")
-class BakeExtraModelsEvent(
- private val addAnyModel: BiConsumer<ModelIdentifier, Identifier>,
-) : FirmamentEvent() {
-
- fun addNonItemModel(modelIdentifier: ModelIdentifier, identifier: Identifier) {
- this.addAnyModel.accept(modelIdentifier, identifier)
- }
-
- fun addItemModel(modelIdentifier: ModelIdentifier) {
- // TODO: If this is still needed: ItemAssetsLoader.FINDER
- // addNonItemModel(
-// modelIdentifier,
-// modelIdentifier.id.withPrefixedPath())
- }
-
-// @Deprecated(level = DeprecationLevel.ERROR, message = "This is no longer needed, since ItemAssetsLoader loads all item models.")
- @Suppress("DEPRECATION")
- companion object : FirmamentEventBus<BakeExtraModelsEvent>()
-}