Package noppes.npcs.api.gui
Interface IButton
-
- All Superinterfaces:
ICustomGuiComponent
public interface IButton extends ICustomGuiComponent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getHeight()
java.lang.String
getLabel()
float
getScale()
java.lang.String
getTexture()
int
getTextureX()
int
getTextureY()
int
getWidth()
boolean
hasTexture()
boolean
isEnabled()
void
setEnabled(boolean enabled)
IButton
setLabel(java.lang.String text)
void
setScale(float scale)
IButton
setSize(int width, int height)
IButton
setTexture(java.lang.String texture)
IButton
setTextureOffset(int textureX, int textureY)
-
Methods inherited from interface noppes.npcs.api.gui.ICustomGuiComponent
fromNBT, getAlpha, getColor, getHoverText, getID, getPosX, getPosY, getRotation, hasHoverText, setAlpha, setColor, setHoverText, setHoverText, setID, setPos, setRotation, toNBT
-
-
-
-
Method Detail
-
getWidth
int getWidth()
-
getHeight
int getHeight()
-
setSize
IButton setSize(int width, int height)
-
getLabel
java.lang.String getLabel()
-
setLabel
IButton setLabel(java.lang.String text)
-
getTexture
java.lang.String getTexture()
-
hasTexture
boolean hasTexture()
-
setTexture
IButton setTexture(java.lang.String texture)
-
getTextureX
int getTextureX()
-
getTextureY
int getTextureY()
-
setTextureOffset
IButton setTextureOffset(int textureX, int textureY)
-
setScale
void setScale(float scale)
-
getScale
float getScale()
-
setEnabled
void setEnabled(boolean enabled)
-
isEnabled
boolean isEnabled()
-
-