Package org.cyclops.cyclopscore.config
Class ConfigurableType
java.lang.Object
org.cyclops.cyclopscore.config.ConfigurableType
The different types of configurable.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ConfigurableType
static final ConfigurableType
static final ConfigurableType
Block type.static final ConfigurableType
Block entity type.static final ConfigurableType
Capability type.static final ConfigurableType
Condition type.static final ConfigurableType
static final ConfigurableType
static final ConfigurableType
Dummy type, only used for configs that refer to nothing.static final ConfigurableType
Potion effect type.static final ConfigurableType
Enchantment type.static final ConfigurableType
Regular entity type.static final ConfigurableType
Fluid type.static final ConfigurableType
static final ConfigurableType
Gui type.static final ConfigurableType
Item type.static final ConfigurableType
static final ConfigurableType
static final ConfigurableType
static final ConfigurableType
static final ConfigurableType
static final ConfigurableType
static final ConfigurableType
Particle type.static final ConfigurableType
Recipe serializer type.static final ConfigurableType
Recipe type type.static final ConfigurableType
static final ConfigurableType
Villager type.static final ConfigurableType
World feature type.static final ConfigurableType
-
Constructor Summary
ConstructorDescriptionConfigurableType
(boolean uniqueInstance, Class<? extends ExtendedConfig> configClass, ConfigurableTypeAction action, String category) Make a new instance. -
Method Summary
Modifier and TypeMethodDescriptionThe category of this type.Class<? extends ExtendedConfig>
Get the class that extendsExtendedConfig
this type can hold.The action for this type after the the configurable has configured so it can be registered.boolean
If this type should refer to a configurable with a unique instance.
-
Field Details
-
ITEM
Item type. -
BLOCK
Block type. -
ENTITY
Regular entity type. -
FLUID
Fluid type. -
ENCHANTMENT
Enchantment type. -
VILLAGER
Villager type. -
EFFECT
Potion effect type. -
CAPABILITY
Capability type. -
GUI
Gui type. -
RECIPE
Recipe serializer type. -
RECIPE_TYPE
Recipe type type. -
CONDITION
Condition type. -
PARTICLE
Particle type. -
BLOCK_ENTITY
Block entity type. -
WORLD_FEATURE
World feature type. -
WORLD_STRUCTURE
-
FOLIAGE_PLACER
-
TRUNK_PLACER
-
ARGUMENT_TYPE
-
BIOME_MODIFIER
-
CREATIVE_MODE_TAB
-
LOOT_MODIFIER
-
CRITERION_TRIGGER
-
LOOT_FUNCTION
-
LOOT_CONDITION
-
LOOT_NUMBER_PROVIDER
-
LOOT_NBT_PROVIDER
-
LOOT_SCORE_PROVIDER
-
DUMMY
Dummy type, only used for configs that refer to nothing.
-
-
Constructor Details
-
ConfigurableType
public ConfigurableType(boolean uniqueInstance, Class<? extends ExtendedConfig> configClass, ConfigurableTypeAction action, String category) Make a new instance.- Parameters:
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.
-
-
Method Details
-
hasUniqueInstance
public boolean hasUniqueInstance()If this type should refer to a configurable with a unique instance. If this is true, the configurable should have a public static void initInstance(ExtendedConfig eConfig) method and also a public static (? extends IConfigurable) getInstance() method.- Returns:
- If it has a unique instance.
-
getConfigClass
Get the class that extendsExtendedConfig
this type can hold.- Returns:
- The class that extends
ExtendedConfig
this type can hold.
-
getConfigurableTypeAction
The action for this type after the the configurable has configured so it can be registered.- Returns:
- The action for this type.
-
getCategory
The category of this type.- Returns:
- The category.
-