mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 22:34:44 +00:00
41 lines
956 B
Java
41 lines
956 B
Java
package noppes.npcs.api.gui;
|
|
|
|
import net.minecraft.inventory.Slot;
|
|
import noppes.npcs.api.item.IItemStack;
|
|
|
|
/**
|
|
* Represents an item slot component in a custom GUI.
|
|
* Provides methods to get or set the contained item.
|
|
*/
|
|
public interface IItemSlot extends ICustomGuiComponent {
|
|
|
|
/**
|
|
* Checks if the slot currently contains an item stack.
|
|
*
|
|
* @return true if a stack exists; false otherwise.
|
|
*/
|
|
boolean hasStack();
|
|
|
|
/**
|
|
* Returns the item stack contained in this slot.
|
|
*
|
|
* @return the item stack.
|
|
*/
|
|
IItemStack getStack();
|
|
|
|
/**
|
|
* Sets the item stack for this slot.
|
|
*
|
|
* @param itemStack the item stack to set.
|
|
* @return this item slot instance.
|
|
*/
|
|
IItemSlot setStack(IItemStack itemStack);
|
|
|
|
/**
|
|
* Returns the underlying Minecraft slot object.
|
|
*
|
|
* @return the Minecraft Slot.
|
|
*/
|
|
Slot getMCSlot();
|
|
}
|