aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/events/TooltipEvent.kt
blob: ac827f7000f199d3ef89bc61b3d3ee26ca91e2bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * 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.gui.tooltip.Tooltip
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: Item.TooltipContext,
    val player: PlayerEntity?
) : FirmamentEvent() {
    companion object : FirmamentEventBus<TooltipEvent>()
}