This repository has been archived on 2024-10-31. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
LibZontreck/src/main/java/dev/zontreck/libzontreck/chestgui/IChestGUIButtonCallback.java

20 lines
710 B
Java

package dev.zontreck.libzontreck.chestgui;
import dev.zontreck.libzontreck.lore.LoreContainer;
import net.minecraft.world.item.ItemStack;
import net.minecraftforge.items.ItemStackHandler;
/**
* This should be used in place of Runnable for ChestGUI
*/
@FunctionalInterface
public interface IChestGUIButtonCallback
{
/**
* A callback function that when invoked will pass the ChestGUI ItemStack
* @param stack A temporary itemstack that is used for the ChestGUI
* @param container The container object for manipulating other items when this is invoked
* @param lore The lore's container instance
*/
void run(ItemStack stack, ItemStackHandler container, LoreContainer lore);
}