Class ItemConfig
java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<ItemConfig,net.minecraft.world.item.Item,ModBase<?>>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<ItemConfig,net.minecraft.world.item.Item>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge<ItemConfig,net.minecraft.world.item.Item>
org.cyclops.cyclopscore.config.extendedconfig.ItemConfig
- All Implemented Interfaces:
Comparable<org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<ItemConfig,,net.minecraft.world.item.Item, ModBase<?>>> org.cyclops.cyclopscore.config.extendedconfig.IModelProviderConfig
@Deprecated
public class ItemConfig
extends ExtendedConfigForge<ItemConfig,net.minecraft.world.item.Item>
implements org.cyclops.cyclopscore.config.extendedconfig.IModelProviderConfig
Deprecated.
Config for items.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.client.resources.model.ModelResourceLocationDeprecated.Fields inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon
configProperties -
Constructor Summary
ConstructorsConstructorDescriptionItemConfig(ModBase<?> mod, String namedId, Function<ItemConfig, ? extends net.minecraft.world.item.Item> elementConstructor) Deprecated.Make a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetConfigPropertyPrefix(ConfigurableProperty annotation) Deprecated.getConfigPropertyPrefixPublic(ConfigurableProperty annotation) Deprecated.Deprecated.protected Collection<net.minecraft.world.item.ItemStack> Deprecated.Collection<net.minecraft.world.item.ItemStack> Deprecated.Deprecated.net.minecraft.client.color.item.ItemColorDeprecated.getModelName(net.minecraft.world.item.ItemStack itemStack) Deprecated.net.minecraft.core.Registry<? super net.minecraft.world.item.Item> Deprecated.Deprecated.net.minecraft.client.resources.model.ModelResourceLocationDeprecated.Methods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge
getResourceKeyMethods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
getConfigPropertyPrefix, getModMethods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon
addInstanceTransformer, compareTo, downCast, getElementConstructor, getInstance, getNamedId, getSubUniqueName, initializeInstance, onConfigPropertyReload, onForgeRegistered, onRegistered, save, showDoubleInitError
-
Field Details
-
dynamicItemVariantLocation
@Deprecated public net.minecraft.client.resources.model.ModelResourceLocation dynamicItemVariantLocationDeprecated.
-
-
Constructor Details
-
ItemConfig
public ItemConfig(ModBase<?> mod, String namedId, Function<ItemConfig, ? extends net.minecraft.world.item.Item> elementConstructor) Deprecated.Make a new instance.- Parameters:
mod- The mod instance.namedId- The unique name ID for the configurable.elementConstructor- The element constructor.
-
-
Method Details
-
getModelName
Deprecated.- Specified by:
getModelNamein interfaceorg.cyclops.cyclopscore.config.extendedconfig.IModelProviderConfig
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKeyin classorg.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<ItemConfig,net.minecraft.world.item.Item, ModBase<?>>
-
getFullTranslationKey
Deprecated.- Overrides:
getFullTranslationKeyin classorg.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<ItemConfig,net.minecraft.world.item.Item, ModBase<?>>
-
getConfigurableType
Deprecated.- Specified by:
getConfigurableTypein classExtendedConfig<ItemConfig,net.minecraft.world.item.Item>
-
getDefaultCreativeTabEntriesPublic
Deprecated. -
getDefaultCreativeTabEntries
Deprecated. -
getRegistry
public net.minecraft.core.Registry<? super net.minecraft.world.item.Item> getRegistry()Deprecated.- Specified by:
getRegistryin classExtendedConfigForge<ItemConfig,net.minecraft.world.item.Item> - Returns:
- The registry in which this should be registered.
-
registerDynamicModel
@Deprecated public net.minecraft.client.resources.model.ModelResourceLocation registerDynamicModel()Deprecated.Register default item models for this item. This should only be used when registering dynamic models.- Returns:
- The item resource location.
-
getItemColorHandler
Deprecated.- Returns:
- The color handler for the item instance.
-
getConfigPropertyPrefixPublic
Deprecated.- Overrides:
getConfigPropertyPrefixPublicin classExtendedConfig<ItemConfig,net.minecraft.world.item.Item>
-
getConfigPropertyPrefix
Deprecated.- Overrides:
getConfigPropertyPrefixin classExtendedConfig<ItemConfig,net.minecraft.world.item.Item> - Parameters:
annotation- The annotation to define the prefix for.- Returns:
- The prefix that will be used inside the config file for
ConfigurableProperty's.
-