public class Theme
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Theme.Key |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,com.simibubi.create.foundation.gui.Theme.ColorHolder> |
colors |
| Modifier | Constructor and Description |
|---|---|
protected |
Theme() |
| Modifier and Type | Method and Description |
|---|---|
static Theme |
addTheme(Theme theme) |
static Color |
c(java.lang.String key) |
static Color |
c(java.lang.String key,
boolean first) |
static Color |
c(Theme.Key key) |
static Color |
c(Theme.Key key,
boolean first) |
protected com.simibubi.create.foundation.gui.Theme.ColorHolder |
get(java.lang.String key) |
int |
getPriority() |
static int |
i(java.lang.String key) |
static int |
i(java.lang.String key,
boolean first) |
static int |
i(Theme.Key key) |
static int |
i(Theme.Key key,
boolean first) |
protected void |
init() |
protected void |
lookup(Theme.Key key,
Theme.Key source) |
static Couple<Color> |
p(java.lang.String key) |
static Couple<Color> |
p(Theme.Key key) |
protected void |
put(java.lang.String key,
Color c) |
protected void |
put(java.lang.String key,
Color c1,
Color c2) |
protected void |
put(Theme.Key key,
Color c) |
protected void |
put(Theme.Key key,
Color c1,
Color c2) |
static void |
reload() |
static void |
removeTheme(Theme theme) |
Theme |
setPriority(int priority) |
protected final java.util.Map<java.lang.String,com.simibubi.create.foundation.gui.Theme.ColorHolder> colors
public static void removeTheme(Theme theme)
public static void reload()
@Nonnull public static Color c(java.lang.String key, boolean first)
public static int i(@Nonnull
Theme.Key key,
boolean first)
public static int i(java.lang.String key,
boolean first)
@Nonnull public static Color c(java.lang.String key)
public static int i(@Nonnull
Theme.Key key)
public static int i(java.lang.String key)
protected void init()
protected void put(java.lang.String key,
Color c)
@Nullable protected com.simibubi.create.foundation.gui.Theme.ColorHolder get(java.lang.String key)
public int getPriority()
public Theme setPriority(int priority)