public class ClientHelper
extends java.lang.Object
| Constructor and Description |
|---|
ClientHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addResourcePackFolder(java.io.File dir) |
static @Nullable java.lang.String |
getCachedOption(java.lang.String key) |
static boolean |
getCachedOptionBoolean(java.lang.String key) |
static byte |
getCachedOptionByte(java.lang.String key) |
static byte |
getCachedOptionByte(java.lang.String key,
byte defaultValue) |
static double |
getCachedOptionDouble(java.lang.String key) |
static double |
getCachedOptionDouble(java.lang.String key,
double defaultValue) |
static <E extends java.lang.Enum<E>> |
getCachedOptionEnum(java.lang.String key,
E defualtValue) |
static float |
getCachedOptionFloat(java.lang.String key) |
static float |
getCachedOptionFloat(java.lang.String key,
float defaultValue) |
static int |
getCachedOptionInt(java.lang.String key) |
static int |
getCachedOptionInt(java.lang.String key,
int defaultValue) |
static long |
getCachedOptionLong(java.lang.String key) |
static long |
getCachedOptionLong(java.lang.String key,
long defaultValue) |
static short |
getCachedOptionShort(java.lang.String key) |
static short |
getCachedOptionShort(java.lang.String key,
short defaultValue) |
static float |
getCachedOptionSoundCategory(java.lang.String name)
Gets volume level of the input sound category.
|
static @Nullable java.lang.Object |
getCurrentScreen() |
static int |
getDisplayHeight() |
static int |
getDisplayWidth() |
static @Nullable FontAPI<?> |
getFont() |
static int |
getGuiScale() |
static @Nullable MinecraftAPI<?> |
getMinecraft() |
static java.util.Map<java.lang.String,java.lang.String> |
getOptionsCache()
Returns a direct map of lines read in from options.txt.
|
static @Nullable PlayerAPI<?,?> |
getPlayer() |
static RenderAPI |
getRenderer() |
static @Nullable BlockEntityAPI<?,?> |
getTargetBlockEntity() |
static @Nullable EntityAPI<?,?> |
getTargetEntity() |
static @Nullable MinecraftWindow |
getWindow() |
static @Nullable WorldAPI<?> |
getWorld() |
static boolean |
isDisplayFocused() |
static boolean |
isFinishedLoading() |
static boolean |
isFullScreen() |
static boolean |
isLoading() |
static boolean |
isPaused() |
static <T> java.util.function.Supplier<T> |
scheduleReturnable(java.util.function.Supplier<T> supplier) |
static void |
scheduleRunnable(java.lang.Runnable runnable) |
static void |
sendMessage(TextAPI<?> msg) |
static void |
sendMessage(TextAPI<?> msg,
boolean isStatusMsg) |
static void |
sendMessage(TextAPI<?> msg,
boolean isStatusMsg,
boolean isActionBar) |
static void |
sendMessage(TextAPI<?> msg,
java.util.UUID uuid) |
static void |
sendMessage(TextAPI<?> msg,
@Nullable java.util.UUID uuid,
boolean isStatusMsg,
boolean isActionBar) |
public static void addResourcePackFolder(java.io.File dir)
@Nullable public static @Nullable java.lang.String getCachedOption(java.lang.String key)
public static boolean getCachedOptionBoolean(java.lang.String key)
public static byte getCachedOptionByte(java.lang.String key)
public static byte getCachedOptionByte(java.lang.String key,
byte defaultValue)
public static double getCachedOptionDouble(java.lang.String key)
public static double getCachedOptionDouble(java.lang.String key,
double defaultValue)
public static <E extends java.lang.Enum<E>> E getCachedOptionEnum(java.lang.String key,
E defualtValue)
public static float getCachedOptionFloat(java.lang.String key)
public static float getCachedOptionFloat(java.lang.String key,
float defaultValue)
public static int getCachedOptionInt(java.lang.String key)
public static int getCachedOptionInt(java.lang.String key,
int defaultValue)
public static long getCachedOptionLong(java.lang.String key)
public static long getCachedOptionLong(java.lang.String key,
long defaultValue)
public static short getCachedOptionShort(java.lang.String key)
public static short getCachedOptionShort(java.lang.String key,
short defaultValue)
public static float getCachedOptionSoundCategory(java.lang.String name)
@Nullable public static @Nullable java.lang.Object getCurrentScreen()
public static int getDisplayHeight()
public static int getDisplayWidth()
@Nullable public static @Nullable FontAPI<?> getFont()
public static int getGuiScale()
@Nullable public static @Nullable MinecraftAPI<?> getMinecraft()
public static java.util.Map<java.lang.String,java.lang.String> getOptionsCache()
@Nullable public static @Nullable PlayerAPI<?,?> getPlayer()
public static RenderAPI getRenderer()
@Nullable public static @Nullable BlockEntityAPI<?,?> getTargetBlockEntity()
@Nullable public static @Nullable EntityAPI<?,?> getTargetEntity()
@Nullable public static @Nullable MinecraftWindow getWindow()
@Nullable public static @Nullable WorldAPI<?> getWorld()
public static boolean isDisplayFocused()
public static boolean isFinishedLoading()
public static boolean isFullScreen()
public static boolean isLoading()
public static boolean isPaused()
public static <T> java.util.function.Supplier<T> scheduleReturnable(java.util.function.Supplier<T> supplier)
public static void scheduleRunnable(java.lang.Runnable runnable)
public static void sendMessage(TextAPI<?> msg)
public static void sendMessage(TextAPI<?> msg, java.util.UUID uuid)
public static void sendMessage(TextAPI<?> msg, boolean isStatusMsg)
public static void sendMessage(TextAPI<?> msg, boolean isStatusMsg, boolean isActionBar)
public static void sendMessage(TextAPI<?> msg, @Nullable @Nullable java.util.UUID uuid, boolean isStatusMsg, boolean isActionBar)