package dev.latvian.mods.kubejs.item;

import dev.latvian.mods.kubejs.player.KubePlayerEvent;
import dev.latvian.mods.kubejs.typings.Info;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.ItemStack;

@Info("""
	Invoked when an item is smelted by a player.
	""")
public class ItemSmeltedKubeEvent implements KubePlayerEvent {
	private final Player player;
	private final ItemStack smelted;

	public ItemSmeltedKubeEvent(Player player, ItemStack smelted) {
		this.player = player;
		this.smelted = smelted;
	}

	@Override
	@Info("The player that smelted the item.")
	public Player getEntity() {
		return player;
	}

	@Info("The item that was smelted.")
	public ItemStack getItem() {
		return smelted;
	}
}