public class ConfigurableType
extends java.lang.Object
IConfigurable.| Modifier and Type | Field and Description |
|---|---|
static ConfigurableType |
BIOME
Biome type.
|
static ConfigurableType |
BLOCK
Block type.
|
static ConfigurableType |
BLOCKCONTAINER
Block type with containers.
|
static ConfigurableType |
DEGRADATIONEFFECT
Degradation effect type.
|
static ConfigurableType |
DUMMY
Dummy type, only used for configs that refer to nothing.
|
static ConfigurableType |
ENCHANTMENT
Enchantment type.
|
static ConfigurableType |
ENTITY
Regular entity type.
|
static ConfigurableType |
FLUID
Fluid type.
|
static ConfigurableType |
ITEM
Item type.
|
static ConfigurableType |
MOB
Mob type.
|
static ConfigurableType |
POTION
Potion effect type.
|
static ConfigurableType |
VILLAGER
Villager type.
|
| Constructor and Description |
|---|
ConfigurableType(boolean uniqueInstance,
java.lang.Class<? extends ExtendedConfig> configClass,
ConfigurableTypeAction action,
ConfigurableTypeCategory category)
Make a new instance.
|
ConfigurableType(boolean uniqueInstance,
java.lang.Class<? extends ExtendedConfig> configClass,
ConfigurableTypeAction action,
java.lang.String category)
Make a new instance with a raw category.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCategory()
The category of this type.
|
java.lang.Class<? extends ExtendedConfig> |
getConfigClass()
Get the class that extends
ExtendedConfig this type can hold. |
ConfigurableTypeAction |
getElementTypeAction()
The action for this type after the the
IConfigurable has configured so it can be registered. |
boolean |
hasUniqueInstance()
If this type should refer to a
IConfigurable with a unique instance. |
public static final ConfigurableType ITEM
public static final ConfigurableType BLOCK
public static final ConfigurableType BLOCKCONTAINER
public static final ConfigurableType MOB
public static final ConfigurableType ENTITY
public static final ConfigurableType FLUID
public static final ConfigurableType ENCHANTMENT
public static final ConfigurableType VILLAGER
public static final ConfigurableType BIOME
public static final ConfigurableType DEGRADATIONEFFECT
public static final ConfigurableType POTION
public static final ConfigurableType DUMMY
public ConfigurableType(boolean uniqueInstance,
java.lang.Class<? extends ExtendedConfig> configClass,
ConfigurableTypeAction action,
ConfigurableTypeCategory category)
uniqueInstance - If this type has a unique instance for each config.configClass - The config class.action - The action instance that helps with saving of the config and optional instance.category - The category in which the configs should be saved.public ConfigurableType(boolean uniqueInstance,
java.lang.Class<? extends ExtendedConfig> configClass,
ConfigurableTypeAction action,
java.lang.String category)
uniqueInstance - If this type has a unique instance for each config.configClass - The config class.action - The action instance that helps with saving of the config and optional instance.category - The category in which the configs should be saved.public boolean hasUniqueInstance()
IConfigurable with a unique instance.
If this is true, the IConfigurable should have a public static void
initInstance(ExtendedConfig eConfig) method and also a public static
(? extends IConfigurable) getInstance() method.public java.lang.Class<? extends ExtendedConfig> getConfigClass()
ExtendedConfig this type can hold.ExtendedConfig this type can hold.public ConfigurableTypeAction getElementTypeAction()
IConfigurable has configured so it can be registered.public java.lang.String getCategory()