mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 13:14:44 +00:00
47 lines
1.0 KiB
Java
47 lines
1.0 KiB
Java
package noppes.npcs.api.gui;
|
|
|
|
/**
|
|
* Represents a text field component in a custom GUI.
|
|
* Provides methods to get or set its size and text content.
|
|
*/
|
|
public interface ITextField extends ICustomGuiComponent {
|
|
|
|
/**
|
|
* Returns the width of the text field.
|
|
*
|
|
* @return the width in pixels.
|
|
*/
|
|
int getWidth();
|
|
|
|
/**
|
|
* Returns the height of the text field.
|
|
*
|
|
* @return the height in pixels.
|
|
*/
|
|
int getHeight();
|
|
|
|
/**
|
|
* Sets the size of the text field.
|
|
*
|
|
* @param width the new width.
|
|
* @param height the new height.
|
|
* @return this text field instance.
|
|
*/
|
|
ITextField setSize(int width, int height);
|
|
|
|
/**
|
|
* Returns the current text content of the text field.
|
|
*
|
|
* @return the text.
|
|
*/
|
|
String getText();
|
|
|
|
/**
|
|
* Sets the text content of the text field.
|
|
*
|
|
* @param text the new text.
|
|
* @return this text field instance.
|
|
*/
|
|
ITextField setText(String text);
|
|
}
|