package org.allaymc.api.eventbus.event.container;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.allaymc.api.annotation.CallerThread;
import org.allaymc.api.annotation.ThreadType;
import org.allaymc.api.blockentity.interfaces.BlockEntityFurnace;
import org.allaymc.api.eventbus.event.CancellableEvent;
import org.allaymc.api.item.ItemStack;

/**
 * Called when a furnace consumes fuel to continue smelting.
 *
 * @author daoge_cmd
 */
@Getter
@AllArgsConstructor
@CallerThread(ThreadType.DIMENSION)
public class FurnaceConsumeFuelEvent extends ContainerEvent implements CancellableEvent {
    /**
     * The furnace consuming the fuel.
     */
    protected BlockEntityFurnace furnace;
    /**
     * The fuel item stack being consumed.
     */
    protected ItemStack fuel;
}
