diff options
author | nea <nea@nea.moe> | 2023-08-31 19:38:38 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-08-31 21:22:26 +0200 |
commit | cb032e7c221e40736ab26b193eea4e32d06113d9 (patch) | |
tree | e49047b3b78fb9887d72cbe9458af44ecbc179d4 /src/main/kotlin/moe/nea/firmament/events | |
parent | b7b01f1c6fbf889ae9bfcdb5b34c5ccfa48d5ba0 (diff) | |
download | Firmament-cb032e7c221e40736ab26b193eea4e32d06113d9.tar.gz Firmament-cb032e7c221e40736ab26b193eea4e32d06113d9.tar.bz2 Firmament-cb032e7c221e40736ab26b193eea4e32d06113d9.zip |
Add price tooltips
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/events')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/events/ItemTooltipEvent.kt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/events/ItemTooltipEvent.kt b/src/main/kotlin/moe/nea/firmament/events/ItemTooltipEvent.kt new file mode 100644 index 0000000..ba597cd --- /dev/null +++ b/src/main/kotlin/moe/nea/firmament/events/ItemTooltipEvent.kt @@ -0,0 +1,17 @@ +/* + * SPDX-FileCopyrightText: 2023 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.item.ItemStack +import net.minecraft.text.Text + +data class ItemTooltipEvent( + val stack: ItemStack, val context: TooltipContext, val lines: MutableList<Text> +) : FirmamentEvent() { + companion object : FirmamentEventBus<ItemTooltipEvent>() +} |