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 IButton
addButton(int id, java.lang.String text, int x, int y)
IButton
addButton(int id, java.lang.String text, int x, int y, int width, int height)
IItemSlot
addItemSlot(int x, int y)
Deprecated.IItemSlot
addItemSlot(int id, int x, int y)
IItemSlot
addItemSlot(int id, int x, int y, IItemStack itemStack)
IItemSlot
addItemSlot(int x, int y, IItemStack itemStack)
Deprecated.ILabel
addLabel(int id, java.lang.String text, int x, int y, int width, int height)
ILabel
addLabel(int id, java.lang.String text, int x, int y, int width, int height, int color)
ILine
addLine(int id, int x1, int y1, int x2, int y2)
ILine
addLine(int id, int x1, int y1, int x2, int y2, int color, int thickness)
IScroll
addScroll(int id, int x, int y, int width, int height, java.lang.String[] list)
ITextField
addTextField(int id, int x, int y, int width, int height)
IButton
addTexturedButton(int id, java.lang.String text, int x, int y, int width, int height, java.lang.String texture)
IButton
addTexturedButton(int id, java.lang.String text, int x, int y, int width, int height, java.lang.String texture, int textureX, int textureY)
ITexturedRect
addTexturedRect(int id, java.lang.String texture, int x, int y, int width, int height)
ITexturedRect
addTexturedRect(int id, java.lang.String texture, int x, int y, int width, int height, int textureX, int textureY)
void
clear()
boolean
doesPauseGame()
ICustomGui
fromNBT(net.minecraft.nbt.NBTTagCompound tag)
java.lang.String
getBackgroundTexture()
ICustomGuiComponent
getComponent(int id)
java.util.List<ICustomGuiComponent>
getComponents()
int
getHeight()
int
getID()
int
getPlayerInvX()
int
getPlayerInvY()
boolean
getShowPlayerInv()
java.util.List<IItemSlot>
getSlots()
int
getWidth()
void
removeComponent(int id)
void
setBackgroundTexture(java.lang.String resourceLocation)
void
setDoesPauseGame(boolean pauseGame)
void
setSize(int width, int height)
void
showPlayerInventory(int x, int y)
net.minecraft.nbt.NBTTagCompound
toNBT()
void
update(IPlayer player)
void
updateComponent(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()
-
-