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 intgetHeight()java.lang.StringgetLabel()floatgetScale()java.lang.StringgetTexture()intgetTextureX()intgetTextureY()intgetWidth()booleanhasTexture()booleanisEnabled()voidsetEnabled(boolean enabled)IButtonsetLabel(java.lang.String text)voidsetScale(float scale)IButtonsetSize(int width, int height)IButtonsetTexture(java.lang.String texture)IButtonsetTextureOffset(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()
-
-