mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-17 05:15:12 +00:00
GUI Api
This commit is contained in:
1 parent
8c2c226d34
commit
a876b4d191
9 files changed
+933
-193
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user