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