public class Configs
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.util.Set<ExtendedConfig> |
configs
The set of configs.
|
| Modifier and Type | Method and Description |
|---|---|
static ExtendedConfig<?> |
getConfigFromItem(net.minecraft.item.Item item)
Get the config from a given item.
|
static Configs |
getInstance()
Get the unique instance.
|
static boolean |
isEnabled(java.lang.Class<? extends ExtendedConfig> config)
A safe way to check if a
IConfigurable is enabled. |
void |
registerConfigs()
Register all the configs.
|
void |
registerGeneralConfigs()
Register the general configs.
|
void |
registerVanillaDictionary()
Register ore dictionary keys for vanilla items/blocks.
|
public java.util.Set<ExtendedConfig> configs
public static Configs getInstance()
public void registerGeneralConfigs()
public void registerVanillaDictionary()
public void registerConfigs()
public static boolean isEnabled(java.lang.Class<? extends ExtendedConfig> config)
IConfigurable is enabled. @see ExtendedConfig#isEnabled()config - The config to check.@Nullable public static ExtendedConfig<?> getConfigFromItem(net.minecraft.item.Item item)
item - The item, possibly IConfigurable.