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
ConstructorsConstructorDescriptionEnchantmentConfig(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
getResourceKeyMethods 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:ExtendedConfigGet the unlocalized name (must be unique!) for this configurable.- Specified by:
getTranslationKeyin classExtendedConfig<EnchantmentConfig,net.minecraft.world.item.enchantment.Enchantment> - Returns:
- The unlocalized name.
-
getFullTranslationKey
Description copied from class:ExtendedConfigGet the full unlocalized name for this configurable.- Overrides:
getFullTranslationKeyin classExtendedConfig<EnchantmentConfig,net.minecraft.world.item.enchantment.Enchantment> - Returns:
- The unlocalized name.
-
getConfigurableType
Description copied from class:ExtendedConfigReturn the configurable type for which this config holds data- Specified by:
getConfigurableTypein 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:
getRegistryin classExtendedConfigForge<EnchantmentConfig,net.minecraft.world.item.enchantment.Enchantment> - Returns:
- The registry in which this should be registered.
-