diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/events')
3 files changed, 8 insertions, 5 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/events/ItemTooltipEvent.kt b/src/main/kotlin/moe/nea/firmament/events/ItemTooltipEvent.kt index ba597cd..94a1678 100644 --- a/src/main/kotlin/moe/nea/firmament/events/ItemTooltipEvent.kt +++ b/src/main/kotlin/moe/nea/firmament/events/ItemTooltipEvent.kt @@ -1,17 +1,19 @@ /* * SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe> + * SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe> * * SPDX-License-Identifier: GPL-3.0-or-later */ package moe.nea.firmament.events -import net.minecraft.client.item.TooltipContext +import net.minecraft.client.item.TooltipType +import net.minecraft.item.Item.TooltipContext import net.minecraft.item.ItemStack import net.minecraft.text.Text data class ItemTooltipEvent( - val stack: ItemStack, val context: TooltipContext, val lines: MutableList<Text> + val stack: ItemStack, val context: TooltipContext, val type: TooltipType, val lines: MutableList<Text> ) : FirmamentEvent() { companion object : FirmamentEventBus<ItemTooltipEvent>() } diff --git a/src/main/kotlin/moe/nea/firmament/events/TooltipEvent.kt b/src/main/kotlin/moe/nea/firmament/events/TooltipEvent.kt index 5b82feb..ac827f7 100644 --- a/src/main/kotlin/moe/nea/firmament/events/TooltipEvent.kt +++ b/src/main/kotlin/moe/nea/firmament/events/TooltipEvent.kt @@ -1,5 +1,6 @@ /* * SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe> + * SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe> * * SPDX-License-Identifier: GPL-3.0-or-later */ @@ -7,14 +8,14 @@ package moe.nea.firmament.events import net.minecraft.client.gui.tooltip.Tooltip -import net.minecraft.client.item.TooltipContext import net.minecraft.entity.player.PlayerEntity +import net.minecraft.item.Item import net.minecraft.item.ItemStack data class TooltipEvent( val itemStack: ItemStack, val tooltip: Tooltip, - val tooltipContext: TooltipContext, + val tooltipContext: Item.TooltipContext, val player: PlayerEntity? ) : FirmamentEvent() { companion object : FirmamentEventBus<TooltipEvent>() diff --git a/src/main/kotlin/moe/nea/firmament/events/WorldRenderLastEvent.kt b/src/main/kotlin/moe/nea/firmament/events/WorldRenderLastEvent.kt index 025d165..b42e9ab 100644 --- a/src/main/kotlin/moe/nea/firmament/events/WorldRenderLastEvent.kt +++ b/src/main/kotlin/moe/nea/firmament/events/WorldRenderLastEvent.kt @@ -1,5 +1,6 @@ /* * SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe> + * SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe> * * SPDX-License-Identifier: GPL-3.0-or-later */ @@ -25,7 +26,6 @@ data class WorldRenderLastEvent( val camera: Camera, val gameRenderer: GameRenderer, val lightmapTextureManager: LightmapTextureManager, - val positionMatrix: Matrix4f, val vertexConsumers: VertexConsumerProvider.Immediate, ) : FirmamentEvent() { companion object : FirmamentEventBus<WorldRenderLastEvent>() |