Class FoliagePlacerConfig<T extends net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer>
java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<C,I>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge<FoliagePlacerConfig<T>,net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<T>>
org.cyclops.cyclopscore.config.extendedconfig.FoliagePlacerConfig<T>
- All Implemented Interfaces:
Comparable<ExtendedConfig<FoliagePlacerConfig<T>,
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<T>>>
public class FoliagePlacerConfig<T extends net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer>
extends ExtendedConfigForge<FoliagePlacerConfig<T>,net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<T>>
Config for foliage placer types.
- See Also:
-
Field Summary
Fields inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
configProperties
-
Constructor Summary
ConstructorDescriptionFoliagePlacerConfig
(ModBase mod, String namedId, Function<FoliagePlacerConfig<T>, com.mojang.serialization.Codec<T>> codec) -
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<? super net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<T>>
Get the unlocalized name (must be unique!) for this configurable.Methods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge
getResourceKey
Methods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
compareTo, downCast, getConfigPropertyPrefix, getInstance, getSubUniqueName, initializeInstance, onConfigPropertyReload, onForgeRegistered, onRegistered, save, showDoubleInitError
-
Constructor Details
-
FoliagePlacerConfig
-
-
Method Details
-
getTranslationKey
Description copied from class:ExtendedConfig
Get the unlocalized name (must be unique!) for this configurable.- Specified by:
getTranslationKey
in classExtendedConfig<FoliagePlacerConfig<T extends net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer>,
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<T extends net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer>> - Returns:
- The unlocalized name.
-
getFullTranslationKey
Description copied from class:ExtendedConfig
Get the full unlocalized name for this configurable.- Overrides:
getFullTranslationKey
in classExtendedConfig<FoliagePlacerConfig<T extends net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer>,
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<T extends net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer>> - Returns:
- The unlocalized name.
-
getConfigurableType
Description copied from class:ExtendedConfig
Return the configurable type for which this config holds data- Specified by:
getConfigurableType
in classExtendedConfig<FoliagePlacerConfig<T extends net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer>,
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<T extends net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer>> - Returns:
- the type of the configurable to where the config belongs
-
getRegistry
public net.minecraftforge.registries.IForgeRegistry<? super net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<T>> getRegistry()- Specified by:
getRegistry
in classExtendedConfigForge<FoliagePlacerConfig<T extends net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer>,
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<T extends net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer>> - Returns:
- The registry in which this should be registered.
-