Class VillagerConfig

java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<C,I>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge<VillagerConfig,net.minecraft.world.entity.npc.VillagerProfession>
org.cyclops.cyclopscore.config.extendedconfig.VillagerConfig
All Implemented Interfaces:
Comparable<ExtendedConfig<VillagerConfig,net.minecraft.world.entity.npc.VillagerProfession>>

public abstract class VillagerConfig extends ExtendedConfigForge<VillagerConfig,net.minecraft.world.entity.npc.VillagerProfession>
Config for villagers.
See Also:
  • Constructor Details

    • VillagerConfig

      public VillagerConfig(ModBase mod, String namedId, Function<VillagerConfig,? extends net.minecraft.world.entity.npc.VillagerProfession> 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<VillagerConfig,net.minecraft.world.entity.npc.VillagerProfession>
      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<VillagerConfig,net.minecraft.world.entity.npc.VillagerProfession>
      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<VillagerConfig,net.minecraft.world.entity.npc.VillagerProfession>
      Returns:
      the type of the configurable to where the config belongs
    • getRegistry

      public net.minecraftforge.registries.IForgeRegistry<net.minecraft.world.entity.npc.VillagerProfession> getRegistry()
      Specified by:
      getRegistry in class ExtendedConfigForge<VillagerConfig,net.minecraft.world.entity.npc.VillagerProfession>
      Returns:
      The registry in which this should be registered.