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:
  • 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

      public String getTranslationKey()
      Description copied from class: ExtendedConfig
      Get the unlocalized name (must be unique!) for this configurable.
      Specified by:
      getTranslationKey in class ExtendedConfig<EffectConfig,net.minecraft.world.effect.MobEffect>
      Returns:
      The unlocalized name.
    • getConfigurableType

      public ConfigurableType getConfigurableType()
      Description copied from class: ExtendedConfig
      Return the configurable type for which this config holds data
      Specified by:
      getConfigurableType in class ExtendedConfig<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 class ExtendedConfigForge<EffectConfig,net.minecraft.world.effect.MobEffect>
      Returns:
      The registry in which this should be registered.