A lot of GOOD API DOCUMENTATION

This commit is contained in:
Kam committed 2026-03-09 16:20:07 -04:00
1 parent a6c55ca331
commit 319e774518
131 files changed
+3363 -175

No files matched your search

+21
View File
@@ -1,12 +1,33 @@
package noppes.npcs.api;
/**
* Represents the scaled screen dimensions of the client display.
*/
public interface IScreenSize {
/**
* Gets the scaled screen width in pixels.
* @return the screen width
*/
public int getWidth();
/**
* Gets the scaled screen height in pixels.
* @return the screen height
*/
public int getHeight();
/**
* Gets a pixel value representing the given percentage of the screen width.
* @param percent the percentage of the width (0.0 to 100.0)
* @return the corresponding pixel value
*/
public int getWidthPercent(double percent);
/**
* Gets a pixel value representing the given percentage of the screen height.
* @param percent the percentage of the height (0.0 to 100.0)
* @return the corresponding pixel value
*/
public int getHeightPercent(double percent);
}