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:
-
Field Summary
Fields inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
configProperties -
Constructor Summary
ConstructorsConstructorDescriptionVillagerConfig(ModBase mod, String namedId, Function<VillagerConfig, ? extends net.minecraft.world.entity.npc.VillagerProfession> elementConstructor) Make a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturn the configurable type for which this config holds dataGet the full unlocalized name for this configurable.net.minecraftforge.registries.IForgeRegistry<net.minecraft.world.entity.npc.VillagerProfession>Get the unlocalized name (must be unique!) for this configurable.Methods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge
getResourceKeyMethods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
compareTo, downCast, getConfigPropertyPrefix, getInstance, getSubUniqueName, initializeInstance, onConfigPropertyReload, onForgeRegistered, onRegistered, save, showDoubleInitError
-
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
Description copied from class:ExtendedConfigGet the unlocalized name (must be unique!) for this configurable.- Specified by:
getTranslationKeyin classExtendedConfig<VillagerConfig,net.minecraft.world.entity.npc.VillagerProfession> - Returns:
- The unlocalized name.
-
getFullTranslationKey
Description copied from class:ExtendedConfigGet the full unlocalized name for this configurable.- Overrides:
getFullTranslationKeyin classExtendedConfig<VillagerConfig,net.minecraft.world.entity.npc.VillagerProfession> - Returns:
- The unlocalized name.
-
getConfigurableType
Description copied from class:ExtendedConfigReturn the configurable type for which this config holds data- Specified by:
getConfigurableTypein classExtendedConfig<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:
getRegistryin classExtendedConfigForge<VillagerConfig,net.minecraft.world.entity.npc.VillagerProfession> - Returns:
- The registry in which this should be registered.
-