mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 17:44:47 +00:00
A lot of GOOD API DOCUMENTATION
This commit is contained in:
1 parent
a6c55ca331
commit
319e774518
131 files changed
+3363
-175
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user