Package noppes.npcs.api.gui
Interface ICustomGui
- All Superinterfaces:
IComponentsWrapper
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()If this is a subgui it closes the subguiintintgetID()intgetWidth()booleanvoidopenSubGui(ICustomGui gui) voidsetBackgroundTexture(String resourceLocation) voidsetDoesPauseGame(boolean pauseGame) voidsetSize(int width, int height) voidupdate()Update the player's CustomGUI with this one.voidupdate(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()
-