Class ExtendedConfigForge<C extends ExtendedConfig<C,I>,I>

java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<C,I>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge<C,I>
Type Parameters:
C - Class of the extension of ExtendedConfig
I - The instance corresponding to this config.
All Implemented Interfaces:
Comparable<ExtendedConfig<C,I>>
Direct Known Subclasses:
ArgumentTypeConfig, BiomeConfig, BiomeModifierConfig, BlockConfig, BlockEntityConfig, EffectConfig, EnchantmentConfig, EntityConfig, FoliagePlacerConfig, GuiConfig, ItemConfig, LootModifierConfig, ParticleConfig, RecipeConfig, RecipeTypeConfig, VillagerConfig, WorldFeatureConfig

public abstract class ExtendedConfigForge<C extends ExtendedConfig<C,I>,I> extends ExtendedConfig<C,I>
An extended config for instances that are to be registered in a Forge registry.
  • Constructor Details

    • ExtendedConfigForge

      public ExtendedConfigForge(ModBase mod, String namedId, Function<C,? extends I> elementConstructor)
      Create a new config
      Parameters:
      mod - The mod instance.
      namedId - A unique name id
      elementConstructor - The element constructor.
  • Method Details

    • getRegistry

      public abstract net.minecraftforge.registries.IForgeRegistry<? super I> getRegistry()
      Returns:
      The registry in which this should be registered.
    • getResourceKey

      public net.minecraft.resources.ResourceKey<I> getResourceKey()