Package noppes.npcs.api.gui
Interface IItemSlot
- All Superinterfaces:
ICustomGuiComponent
-
Method Summary
Modifier and TypeMethodDescriptionint
This is purely for the visual slot, default is 1net.minecraft.world.inventory.Slot
getStack()
boolean
hasStack()
boolean
setGuiType
(int type) This is purely for the visual slot, default is 1setOnUpdate
(GuiItemSlotUpdate onUpdate) setStack
(IItemStack itemStack) Methods inherited from interface noppes.npcs.api.gui.ICustomGuiComponent
getEnabled, getHeight, getHoverText, getID, getPosX, getPosY, getType, getUniqueID, getVisible, getWidth, hasHoverText, setEnabled, setHoverText, setHoverText, setID, setPos, setSize, setVisible
-
Method Details
-
hasStack
boolean hasStack() -
getStack
IItemStack getStack() -
setStack
-
getGuiType
int getGuiType()This is purely for the visual slot, default is 1- Returns:
- GuiType 0:None, 1:Normal, 2:Sword, 3:Arrow, 4:Shield, 5:Head, 6:Body, 7:Legs, 8:Feet
-
setGuiType
This is purely for the visual slot, default is 1- Parameters:
type
- GuiType 0:None, 1:Normal, 2:Sword, 3:Arrow, 4:Shield, 5:Head, 6:Body, 7:Legs, 8:Feet
-
isPlayerSlot
boolean isPlayerSlot() -
setOnUpdate
-
getMCSlot
net.minecraft.world.inventory.Slot getMCSlot()
-