This commit is contained in:
Kam committed 2025-03-06 01:53:19 -05:00
1 parent 8c2c226d34
commit a876b4d191
9 files changed
+933 -193

No files matched your search

+46 -13
View File
@@ -1,13 +1,46 @@
package noppes.npcs.api.gui;
public interface ITextField extends ICustomGuiComponent {
int getWidth();
int getHeight();
ITextField setSize(int width, int height);
String getText();
ITextField setText(String text);
}
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);
}