Class EffectConfig
java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<C,I>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge<EffectConfig,net.minecraft.world.effect.MobEffect>
org.cyclops.cyclopscore.config.extendedconfig.EffectConfig
- All Implemented Interfaces:
Comparable<ExtendedConfig<EffectConfig,
net.minecraft.world.effect.MobEffect>>
public abstract class EffectConfig
extends ExtendedConfigForge<EffectConfig,net.minecraft.world.effect.MobEffect>
Config for potion effects.
- See Also:
-
Field Summary
Fields inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
configProperties
-
Constructor Summary
ConstructorDescriptionEffectConfig
(ModBase mod, String namedId, Function<EffectConfig, ? extends net.minecraft.world.effect.MobEffect> elementConstructor) Make a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturn the configurable type for which this config holds datanet.minecraftforge.registries.IForgeRegistry<net.minecraft.world.effect.MobEffect>
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, getFullTranslationKey, getInstance, getSubUniqueName, initializeInstance, onConfigPropertyReload, onForgeRegistered, onRegistered, save, showDoubleInitError
-
Constructor Details
-
EffectConfig
public EffectConfig(ModBase mod, String namedId, Function<EffectConfig, ? extends net.minecraft.world.effect.MobEffect> 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<EffectConfig,
net.minecraft.world.effect.MobEffect> - 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<EffectConfig,
net.minecraft.world.effect.MobEffect> - Returns:
- the type of the configurable to where the config belongs
-
getRegistry
public net.minecraftforge.registries.IForgeRegistry<net.minecraft.world.effect.MobEffect> getRegistry()- Specified by:
getRegistry
in classExtendedConfigForge<EffectConfig,
net.minecraft.world.effect.MobEffect> - Returns:
- The registry in which this should be registered.
-