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
Modifier and TypeFieldDescriptionnet.minecraft.client.resources.model.ModelResourceLocation
Deprecated.Fields inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon
configProperties
-
Constructor Summary
ConstructorDescriptionItemConfig
(ModBase<?> mod, String namedId, Function<ItemConfig, ? extends net.minecraft.world.item.Item> elementConstructor) Deprecated.Make a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getConfigPropertyPrefix
(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.ItemColor
Deprecated.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.ModelResourceLocation
Deprecated.Methods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge
getResourceKey
Methods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
getConfigPropertyPrefix, getMod
Methods 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:
getModelName
in interfaceorg.cyclops.cyclopscore.config.extendedconfig.IModelProviderConfig
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKey
in classorg.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<ItemConfig,
net.minecraft.world.item.Item, ModBase<?>>
-
getFullTranslationKey
Deprecated.- Overrides:
getFullTranslationKey
in classorg.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<ItemConfig,
net.minecraft.world.item.Item, ModBase<?>>
-
getConfigurableType
Deprecated.- Specified by:
getConfigurableType
in 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:
getRegistry
in 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:
getConfigPropertyPrefixPublic
in classExtendedConfig<ItemConfig,
net.minecraft.world.item.Item>
-
getConfigPropertyPrefix
Deprecated.- Overrides:
getConfigPropertyPrefix
in 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.
-