Package noppes.npcs.api.gui
Interface ICustomGui
- All Superinterfaces:
IComponentsWrapper
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
If this is a subgui it closes the subguiint
int
getID()
int
getWidth()
boolean
void
openSubGui
(ICustomGui gui) void
setBackgroundTexture
(String resourceLocation) void
setDoesPauseGame
(boolean pauseGame) void
setSize
(int width, int height) void
update()
Update the player's CustomGUI with this one.void
update
(ICustomGuiComponent component) Updates a single component of a gui, instead of the whole guiMethods inherited from interface noppes.npcs.api.gui.IComponentsWrapper
addAssetsSelector, addButton, addButton, addButtonList, addColoredLine, addComponent, addEntityDisplay, addItemRenderer, addItemSlot, addItemSlot, addLabel, addLabel, addScroll, addSlider, addTextArea, addTextField, addTexturedButton, addTexturedButton, addTexturedRect, addTexturedRect, getComponent, getComponents, getPlayerSlots, getSlots, removeComponent, removeItemSlot, showPlayerInventory, showPlayerInventory
-
Method Details
-
getID
int getID() -
getWidth
int getWidth() -
getHeight
int getHeight() -
setSize
void setSize(int width, int height) -
setDoesPauseGame
void setDoesPauseGame(boolean pauseGame) -
setBackgroundTexture
-
update
void update()Update the player's CustomGUI with this one. -
update
Updates a single component of a gui, instead of the whole gui -
getScrollingPanel
IComponentsScrollableWrapper getScrollingPanel() -
openSubGui
-
getSubGui
ICustomGui getSubGui() -
hasSubGui
boolean hasSubGui() -
closeSubGui
ICustomGui closeSubGui() -
close
void close()If this is a subgui it closes the subgui -
getParentGui
ICustomGui getParentGui() -
getRootGui
ICustomGui getRootGui() -
getActiveGui
ICustomGui getActiveGui() -
getPlayer
IPlayer getPlayer()
-