Class EnchantmentConfig
java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<C,I>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge<EnchantmentConfig,net.minecraft.world.item.enchantment.Enchantment>
org.cyclops.cyclopscore.config.extendedconfig.EnchantmentConfig
- All Implemented Interfaces:
Comparable<ExtendedConfig<EnchantmentConfig,
net.minecraft.world.item.enchantment.Enchantment>>
public abstract class EnchantmentConfig
extends ExtendedConfigForge<EnchantmentConfig,net.minecraft.world.item.enchantment.Enchantment>
Config for enchantments.
- See Also:
-
Field Summary
Fields inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
configProperties
-
Constructor Summary
ConstructorDescriptionEnchantmentConfig
(ModBase mod, String namedId, Function<EnchantmentConfig, ? extends net.minecraft.world.item.enchantment.Enchantment> elementConstructor) Make a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturn the configurable type for which this config holds dataGet the full unlocalized name for this configurable.net.minecraftforge.registries.IForgeRegistry<net.minecraft.world.item.enchantment.Enchantment>
Get the unlocalized name (must be unique!) for this configurable.Methods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge
getResourceKey
Methods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
compareTo, downCast, getConfigPropertyPrefix, getInstance, getSubUniqueName, initializeInstance, onConfigPropertyReload, onForgeRegistered, onRegistered, save, showDoubleInitError
-
Constructor Details
-
EnchantmentConfig
public EnchantmentConfig(ModBase mod, String namedId, Function<EnchantmentConfig, ? extends net.minecraft.world.item.enchantment.Enchantment> elementConstructor) Make a new instance.- Parameters:
mod
- The mod instance.namedId
- The unique name ID for the configurable.elementConstructor
- The element constructor.
-
-
Method Details
-
getTranslationKey
Description copied from class:ExtendedConfig
Get the unlocalized name (must be unique!) for this configurable.- Specified by:
getTranslationKey
in classExtendedConfig<EnchantmentConfig,
net.minecraft.world.item.enchantment.Enchantment> - Returns:
- The unlocalized name.
-
getFullTranslationKey
Description copied from class:ExtendedConfig
Get the full unlocalized name for this configurable.- Overrides:
getFullTranslationKey
in classExtendedConfig<EnchantmentConfig,
net.minecraft.world.item.enchantment.Enchantment> - Returns:
- The unlocalized name.
-
getConfigurableType
Description copied from class:ExtendedConfig
Return the configurable type for which this config holds data- Specified by:
getConfigurableType
in classExtendedConfig<EnchantmentConfig,
net.minecraft.world.item.enchantment.Enchantment> - Returns:
- the type of the configurable to where the config belongs
-
getRegistry
public net.minecraftforge.registries.IForgeRegistry<net.minecraft.world.item.enchantment.Enchantment> getRegistry()- Specified by:
getRegistry
in classExtendedConfigForge<EnchantmentConfig,
net.minecraft.world.item.enchantment.Enchantment> - Returns:
- The registry in which this should be registered.
-