Class WorldFeatureConfig
java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<C,I>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge<WorldFeatureConfig,net.minecraft.world.level.levelgen.feature.Feature<?>>
org.cyclops.cyclopscore.config.extendedconfig.WorldFeatureConfig
- All Implemented Interfaces:
Comparable<ExtendedConfig<WorldFeatureConfig,net.minecraft.world.level.levelgen.feature.Feature<?>>>
public abstract class WorldFeatureConfig
extends ExtendedConfigForge<WorldFeatureConfig,net.minecraft.world.level.levelgen.feature.Feature<?>>
Config for world features.
- See Also:
-
Field Summary
Fields inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
configProperties -
Constructor Summary
ConstructorsConstructorDescriptionWorldFeatureConfig(ModBase mod, String namedId, Function<WorldFeatureConfig, ? extends net.minecraft.world.level.levelgen.feature.Feature<?>> elementConstructor) -
Method Summary
Modifier and TypeMethodDescriptionReturn the configurable type for which this config holds datanet.minecraftforge.registries.IForgeRegistry<net.minecraft.world.level.levelgen.feature.Feature<?>>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, getFullTranslationKey, getInstance, getSubUniqueName, initializeInstance, onConfigPropertyReload, onForgeRegistered, onRegistered, save, showDoubleInitError
-
Constructor Details
-
WorldFeatureConfig
public WorldFeatureConfig(ModBase mod, String namedId, Function<WorldFeatureConfig, ? extends net.minecraft.world.level.levelgen.feature.Feature<?>> elementConstructor)
-
-
Method Details
-
getTranslationKey
Description copied from class:ExtendedConfigGet the unlocalized name (must be unique!) for this configurable.- Specified by:
getTranslationKeyin classExtendedConfig<WorldFeatureConfig,net.minecraft.world.level.levelgen.feature.Feature<?>> - Returns:
- The unlocalized name.
-
getConfigurableType
Description copied from class:ExtendedConfigReturn the configurable type for which this config holds data- Specified by:
getConfigurableTypein classExtendedConfig<WorldFeatureConfig,net.minecraft.world.level.levelgen.feature.Feature<?>> - Returns:
- the type of the configurable to where the config belongs
-
getRegistry
public net.minecraftforge.registries.IForgeRegistry<net.minecraft.world.level.levelgen.feature.Feature<?>> getRegistry()- Specified by:
getRegistryin classExtendedConfigForge<WorldFeatureConfig,net.minecraft.world.level.levelgen.feature.Feature<?>> - Returns:
- The registry in which this should be registered.
-