Package noppes.npcs.api.gui
Interface ICustomGui
-
public interface ICustomGui
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description IButtonaddButton(int id, java.lang.String text, int x, int y)IButtonaddButton(int id, java.lang.String text, int x, int y, int width, int height)IItemSlotaddItemSlot(int x, int y)Deprecated.IItemSlotaddItemSlot(int id, int x, int y)IItemSlotaddItemSlot(int id, int x, int y, IItemStack itemStack)IItemSlotaddItemSlot(int x, int y, IItemStack itemStack)Deprecated.ILabeladdLabel(int id, java.lang.String text, int x, int y, int width, int height)ILabeladdLabel(int id, java.lang.String text, int x, int y, int width, int height, int color)ILineaddLine(int id, int x1, int y1, int x2, int y2)ILineaddLine(int id, int x1, int y1, int x2, int y2, int color, int thickness)IScrolladdScroll(int id, int x, int y, int width, int height, java.lang.String[] list)ITextFieldaddTextField(int id, int x, int y, int width, int height)IButtonaddTexturedButton(int id, java.lang.String text, int x, int y, int width, int height, java.lang.String texture)IButtonaddTexturedButton(int id, java.lang.String text, int x, int y, int width, int height, java.lang.String texture, int textureX, int textureY)ITexturedRectaddTexturedRect(int id, java.lang.String texture, int x, int y, int width, int height)ITexturedRectaddTexturedRect(int id, java.lang.String texture, int x, int y, int width, int height, int textureX, int textureY)voidclear()booleandoesPauseGame()ICustomGuifromNBT(net.minecraft.nbt.NBTTagCompound tag)java.lang.StringgetBackgroundTexture()ICustomGuiComponentgetComponent(int id)java.util.List<ICustomGuiComponent>getComponents()intgetHeight()intgetID()intgetPlayerInvX()intgetPlayerInvY()booleangetShowPlayerInv()java.util.List<IItemSlot>getSlots()intgetWidth()voidremoveComponent(int id)voidsetBackgroundTexture(java.lang.String resourceLocation)voidsetDoesPauseGame(boolean pauseGame)voidsetSize(int width, int height)voidshowPlayerInventory(int x, int y)net.minecraft.nbt.NBTTagCompoundtoNBT()voidupdate(IPlayer player)voidupdateComponent(ICustomGuiComponent component)
-
-
-
Method Detail
-
getID
int getID()
-
getWidth
int getWidth()
-
getHeight
int getHeight()
-
getComponents
java.util.List<ICustomGuiComponent> getComponents()
-
clear
void clear()
-
getSlots
java.util.List<IItemSlot> getSlots()
-
setSize
void setSize(int width, int height)
-
setDoesPauseGame
void setDoesPauseGame(boolean pauseGame)
-
doesPauseGame
boolean doesPauseGame()
-
setBackgroundTexture
void setBackgroundTexture(java.lang.String resourceLocation)
-
getBackgroundTexture
java.lang.String getBackgroundTexture()
-
addButton
IButton addButton(int id, java.lang.String text, int x, int y)
-
addButton
IButton addButton(int id, java.lang.String text, int x, int y, int width, int height)
-
addTexturedButton
IButton addTexturedButton(int id, java.lang.String text, int x, int y, int width, int height, java.lang.String texture)
-
addTexturedButton
IButton addTexturedButton(int id, java.lang.String text, int x, int y, int width, int height, java.lang.String texture, int textureX, int textureY)
-
addLabel
ILabel addLabel(int id, java.lang.String text, int x, int y, int width, int height)
-
addLabel
ILabel addLabel(int id, java.lang.String text, int x, int y, int width, int height, int color)
-
addTextField
ITextField addTextField(int id, int x, int y, int width, int height)
-
addTexturedRect
ITexturedRect addTexturedRect(int id, java.lang.String texture, int x, int y, int width, int height)
-
addTexturedRect
ITexturedRect addTexturedRect(int id, java.lang.String texture, int x, int y, int width, int height, int textureX, int textureY)
-
addScroll
IScroll addScroll(int id, int x, int y, int width, int height, java.lang.String[] list)
-
addLine
ILine addLine(int id, int x1, int y1, int x2, int y2, int color, int thickness)
-
addLine
ILine addLine(int id, int x1, int y1, int x2, int y2)
-
addItemSlot
IItemSlot addItemSlot(int id, int x, int y)
-
addItemSlot
IItemSlot addItemSlot(int id, int x, int y, IItemStack itemStack)
-
addItemSlot
@Deprecated IItemSlot addItemSlot(int x, int y)
Deprecated.
-
addItemSlot
@Deprecated IItemSlot addItemSlot(int x, int y, IItemStack itemStack)
Deprecated.
-
showPlayerInventory
void showPlayerInventory(int x, int y)
-
getComponent
ICustomGuiComponent getComponent(int id)
-
removeComponent
void removeComponent(int id)
-
updateComponent
void updateComponent(ICustomGuiComponent component)
-
update
void update(IPlayer player)
-
getShowPlayerInv
boolean getShowPlayerInv()
-
getPlayerInvX
int getPlayerInvX()
-
getPlayerInvY
int getPlayerInvY()
-
fromNBT
ICustomGui fromNBT(net.minecraft.nbt.NBTTagCompound tag)
-
toNBT
net.minecraft.nbt.NBTTagCompound toNBT()
-
-