public final class RPWindowHandler extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
enable()
Enables this class's functionality if it has not already been enabled.
|
static String |
getWindowTitle()
Returns the Minecraft window title according to the relevant RandomPatches configuration
options.
|
static void |
onConfigReload()
Called by
RPConfig.Window when the RandomPatches configuration is reloaded. |
static void |
updateWindowIcon(@Nullable InputStream vanillaIcon16,
@Nullable InputStream vanillaIcon32)
Applies the RandomPatches configuration options relating to the Minecraft window icon.
|
static void |
updateWindowIcon(@Nullable InputStream vanillaIcon16,
@Nullable InputStream vanillaIcon32,
long window)
Applies the RandomPatches configuration options relating to the Minecraft window icon.
|
public static void enable()
public static void onConfigReload()
RPConfig.Window when the RandomPatches configuration is reloaded.public static String getWindowTitle()
public static void updateWindowIcon(@Nullable InputStream vanillaIcon16, @Nullable InputStream vanillaIcon32)
vanillaIcon16 - the 16x16 vanilla icon.vanillaIcon32 - the 32x32 vanilla icon.public static void updateWindowIcon(@Nullable InputStream vanillaIcon16, @Nullable InputStream vanillaIcon32, long window)
vanillaIcon16 - the 16x16 vanilla icon.vanillaIcon32 - the 32x32 vanilla icon.window - the window handle.