Class RecipeConfig<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<RecipeConfig<T>,net.minecraft.world.item.crafting.RecipeSerializer<T>>
org.cyclops.cyclopscore.config.extendedconfig.RecipeConfig<T>
All Implemented Interfaces:
Comparable<ExtendedConfig<RecipeConfig<T>,net.minecraft.world.item.crafting.RecipeSerializer<T>>>

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

    • RecipeConfig

      public RecipeConfig(ModBase mod, String namedId, Function<RecipeConfig<T>,? extends net.minecraft.world.item.crafting.RecipeSerializer<T>> elementConstructor)
      Create a new config
      Parameters:
      mod - The mod instance.
      namedId - A unique name id
      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<RecipeConfig<T extends net.minecraft.world.item.crafting.Recipe<?>>,net.minecraft.world.item.crafting.RecipeSerializer<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<RecipeConfig<T extends net.minecraft.world.item.crafting.Recipe<?>>,net.minecraft.world.item.crafting.RecipeSerializer<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<RecipeConfig<T extends net.minecraft.world.item.crafting.Recipe<?>>,net.minecraft.world.item.crafting.RecipeSerializer<T extends net.minecraft.world.item.crafting.Recipe<?>>>
      Returns:
      the type of the configurable to where the config belongs
    • getRegistry

      public net.minecraftforge.registries.IForgeRegistry<? super net.minecraft.world.item.crafting.RecipeSerializer<T>> getRegistry()
      Specified by:
      getRegistry in class ExtendedConfigForge<RecipeConfig<T extends net.minecraft.world.item.crafting.Recipe<?>>,net.minecraft.world.item.crafting.RecipeSerializer<T extends net.minecraft.world.item.crafting.Recipe<?>>>
      Returns:
      The registry in which this should be registered.