Class LootModifierConfig<T extends net.minecraftforge.common.loot.IGlobalLootModifier>
java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<C,I>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge<LootModifierConfig<T>,com.mojang.serialization.Codec<T>>
org.cyclops.cyclopscore.config.extendedconfig.LootModifierConfig<T>
- All Implemented Interfaces:
Comparable<ExtendedConfig<LootModifierConfig<T>,
com.mojang.serialization.Codec<T>>>
- Direct Known Subclasses:
LootModifierInjectItemConfig
public abstract class LootModifierConfig<T extends net.minecraftforge.common.loot.IGlobalLootModifier>
extends ExtendedConfigForge<LootModifierConfig<T>,com.mojang.serialization.Codec<T>>
Config for loot modifiers.
- See Also:
-
Field Summary
Fields inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
configProperties
-
Constructor Summary
ConstructorDescriptionLootModifierConfig
(ModBase mod, String namedId, Function<LootModifierConfig<T>, com.mojang.serialization.Codec<T>> elementConstructor) -
Method Summary
Modifier and TypeMethodDescriptionReturn the configurable type for which this config holds datanet.minecraftforge.registries.IForgeRegistry<com.mojang.serialization.Codec<? extends net.minecraftforge.common.loot.IGlobalLootModifier>>
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, getFullTranslationKey, getInstance, getSubUniqueName, initializeInstance, onConfigPropertyReload, onForgeRegistered, onRegistered, save, showDoubleInitError
-
Constructor Details
-
LootModifierConfig
-
-
Method Details
-
getTranslationKey
Description copied from class:ExtendedConfig
Get the unlocalized name (must be unique!) for this configurable.- Specified by:
getTranslationKey
in classExtendedConfig<LootModifierConfig<T extends net.minecraftforge.common.loot.IGlobalLootModifier>,
com.mojang.serialization.Codec<T extends net.minecraftforge.common.loot.IGlobalLootModifier>> - 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<LootModifierConfig<T extends net.minecraftforge.common.loot.IGlobalLootModifier>,
com.mojang.serialization.Codec<T extends net.minecraftforge.common.loot.IGlobalLootModifier>> - Returns:
- the type of the configurable to where the config belongs
-
getRegistry
public net.minecraftforge.registries.IForgeRegistry<com.mojang.serialization.Codec<? extends net.minecraftforge.common.loot.IGlobalLootModifier>> getRegistry()- Specified by:
getRegistry
in classExtendedConfigForge<LootModifierConfig<T extends net.minecraftforge.common.loot.IGlobalLootModifier>,
com.mojang.serialization.Codec<T extends net.minecraftforge.common.loot.IGlobalLootModifier>> - Returns:
- The registry in which this should be registered.
-