Class RecipeTypeConfig<T extends net.minecraft.world.item.crafting.Recipe<?>>

java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<C,I>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge<RecipeTypeConfig<T>,net.minecraft.world.item.crafting.RecipeType<T>>
org.cyclops.cyclopscore.config.extendedconfig.RecipeTypeConfig<T>
All Implemented Interfaces:
Comparable<ExtendedConfig<RecipeTypeConfig<T>,net.minecraft.world.item.crafting.RecipeType<T>>>

public abstract class RecipeTypeConfig<T extends net.minecraft.world.item.crafting.Recipe<?>> extends ExtendedConfigForge<RecipeTypeConfig<T>,net.minecraft.world.item.crafting.RecipeType<T>>
Config for recipe types.
See Also:
  • Constructor Details

    • RecipeTypeConfig

      public RecipeTypeConfig(ModBase mod, String namedId)
      Create a new config
      Parameters:
      mod - The mod instance.
      namedId - A unique name id
  • 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<RecipeTypeConfig<T extends net.minecraft.world.item.crafting.Recipe<?>>,net.minecraft.world.item.crafting.RecipeType<T extends net.minecraft.world.item.crafting.Recipe<?>>>
      Returns:
      The unlocalized name.
    • getFullTranslationKey

      public String getFullTranslationKey()
      Description copied from class: ExtendedConfig
      Get the full unlocalized name for this configurable.
      Overrides:
      getFullTranslationKey in class ExtendedConfig<RecipeTypeConfig<T extends net.minecraft.world.item.crafting.Recipe<?>>,net.minecraft.world.item.crafting.RecipeType<T extends net.minecraft.world.item.crafting.Recipe<?>>>
      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<RecipeTypeConfig<T extends net.minecraft.world.item.crafting.Recipe<?>>,net.minecraft.world.item.crafting.RecipeType<T extends net.minecraft.world.item.crafting.Recipe<?>>>
      Returns:
      the type of the configurable to where the config belongs
    • getRegistry

      public net.minecraft.core.Registry<? super net.minecraft.world.item.crafting.RecipeType<T>> getRegistry()
      Specified by:
      getRegistry in class ExtendedConfigForge<RecipeTypeConfig<T extends net.minecraft.world.item.crafting.Recipe<?>>,net.minecraft.world.item.crafting.RecipeType<T extends net.minecraft.world.item.crafting.Recipe<?>>>
      Returns:
      The registry in which this should be registered.