public class ClientUtils
extends java.lang.Object
Constructor and Description |
---|
ClientUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatNumber(double number)
Used to translate a number to a standard format based on Locale
|
static boolean |
isCtrlPressed()
Checks for CTRL key, Macs use Command so this will enable that key as well
|
static boolean |
isKeyPressed(int key)
Get if key is currently pressed
|
static boolean |
isShiftPressed()
Checks for the Shift key pressed
|
static java.lang.String |
translate(java.lang.String text)
Used to translate the text to a given language
|
public static java.lang.String translate(java.lang.String text)
text
- The text to translatepublic static java.lang.String formatNumber(double number)
number
- Number to formatpublic static boolean isKeyPressed(int key)
key
- GLFW
key that is pressedpublic static boolean isCtrlPressed()
public static boolean isShiftPressed()