Class BlockConfig
java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<BlockConfig,net.minecraft.world.level.block.Block,ModBase<?>>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<BlockConfig,net.minecraft.world.level.block.Block>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge<BlockConfig,net.minecraft.world.level.block.Block>
org.cyclops.cyclopscore.config.extendedconfig.BlockConfig
- All Implemented Interfaces:
Comparable<org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<BlockConfig,
,net.minecraft.world.level.block.Block, ModBase<?>>> org.cyclops.cyclopscore.config.extendedconfig.IModelProviderConfig
@Deprecated
public abstract class BlockConfig
extends ExtendedConfigForge<BlockConfig,net.minecraft.world.level.block.Block>
implements org.cyclops.cyclopscore.config.extendedconfig.IModelProviderConfig
Deprecated.
Config for blocks.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionnet.minecraft.client.resources.model.ModelResourceLocation
Deprecated.net.minecraft.client.resources.model.ModelResourceLocation
Deprecated.Fields inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon
configProperties
-
Constructor Summary
ConstructorDescriptionBlockConfig
(ModBase<?> mod, String namedId, Function<BlockConfig, ? extends net.minecraft.world.level.block.Block> blockConstructor, BiFunction<BlockConfig, net.minecraft.world.level.block.Block, ? extends net.minecraft.world.item.Item> itemConstructor) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection
<net.minecraft.world.item.ItemStack> Deprecated.net.minecraft.client.color.block.BlockColor
Deprecated.protected String
getConfigPropertyPrefix
(ConfigurableProperty annotation) Deprecated.getConfigPropertyPrefixPublic
(ConfigurableProperty annotation) Deprecated.Deprecated.Collection
<net.minecraft.world.item.ItemStack> Deprecated.protected static BiFunction
<BlockConfig, net.minecraft.world.level.block.Block, ? extends net.minecraft.world.item.BlockItem> getDefaultItemConstructor
(ModBase<?> mod) Deprecated.protected static BiFunction
<BlockConfig, net.minecraft.world.level.block.Block, ? extends net.minecraft.world.item.BlockItem> getDefaultItemConstructor
(ModBase<?> mod, Function<net.minecraft.world.item.Item.Properties, net.minecraft.world.item.Item.Properties> itemPropertiesModifier) Deprecated.Deprecated.BiFunction
<BlockConfig, net.minecraft.world.level.block.Block, ? extends net.minecraft.world.item.Item> Deprecated.net.minecraft.world.item.Item
Deprecated.getModelName
(net.minecraft.world.item.ItemStack itemStack) Deprecated.net.minecraft.core.Registry
<? super net.minecraft.world.level.block.Block> Deprecated.Deprecated.org.apache.commons.lang3.tuple.Pair
<net.minecraft.client.resources.model.ModelResourceLocation, net.minecraft.client.resources.model.ModelResourceLocation> Deprecated.void
setItemInstance
(net.minecraft.world.item.Item itemInstance) 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
-
dynamicBlockVariantLocation
@Deprecated public net.minecraft.client.resources.model.ModelResourceLocation dynamicBlockVariantLocationDeprecated. -
dynamicItemVariantLocation
@Deprecated public net.minecraft.client.resources.model.ModelResourceLocation dynamicItemVariantLocationDeprecated.
-
-
Constructor Details
-
BlockConfig
public BlockConfig(ModBase<?> mod, String namedId, Function<BlockConfig, ? extends net.minecraft.world.level.block.Block> blockConstructor, @Nullable BiFunction<BlockConfig, net.minecraft.world.level.block.Block, ? extends net.minecraft.world.item.Item> itemConstructor) Deprecated.
-
-
Method Details
-
getDefaultItemConstructor
protected static BiFunction<BlockConfig,net.minecraft.world.level.block.Block, getDefaultItemConstructor? extends net.minecraft.world.item.BlockItem> (ModBase<?> mod) Deprecated. -
getDefaultItemConstructor
protected static BiFunction<BlockConfig,net.minecraft.world.level.block.Block, getDefaultItemConstructor? extends net.minecraft.world.item.BlockItem> (ModBase<?> mod, @Nullable Function<net.minecraft.world.item.Item.Properties, net.minecraft.world.item.Item.Properties> itemPropertiesModifier) Deprecated. -
getItemConstructor
@Nullable public BiFunction<BlockConfig,net.minecraft.world.level.block.Block, getItemConstructor()? extends net.minecraft.world.item.Item> Deprecated. -
getItemInstance
@Nullable public net.minecraft.world.item.Item getItemInstance()Deprecated. -
setItemInstance
public void setItemInstance(@Nullable net.minecraft.world.item.Item itemInstance) Deprecated. -
getModelName
Deprecated.- Specified by:
getModelName
in interfaceorg.cyclops.cyclopscore.config.extendedconfig.IModelProviderConfig
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKey
in classorg.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<BlockConfig,
net.minecraft.world.level.block.Block, ModBase<?>>
-
getFullTranslationKey
Deprecated.- Overrides:
getFullTranslationKey
in classorg.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<BlockConfig,
net.minecraft.world.level.block.Block, ModBase<?>>
-
getConfigurableType
Deprecated.- Specified by:
getConfigurableType
in classExtendedConfig<BlockConfig,
net.minecraft.world.level.block.Block>
-
getDefaultCreativeTabEntriesPublic
Deprecated. -
defaultCreativeTabEntries
Deprecated. -
getRegistry
public net.minecraft.core.Registry<? super net.minecraft.world.level.block.Block> getRegistry()Deprecated.- Specified by:
getRegistry
in classExtendedConfigForge<BlockConfig,
net.minecraft.world.level.block.Block> - Returns:
- The registry in which this should be registered.
-
registerDynamicModel
@Deprecated public org.apache.commons.lang3.tuple.Pair<net.minecraft.client.resources.model.ModelResourceLocation,net.minecraft.client.resources.model.ModelResourceLocation> registerDynamicModel()Deprecated.Register default block and item models for this block. This should only be used when registering dynamic models.- Returns:
- The pair of block resource location and item resource location.
-
getBlockColorHandler
Deprecated.- Returns:
- An optional color handler for the block instance.
-
getConfigPropertyPrefixPublic
Deprecated.- Overrides:
getConfigPropertyPrefixPublic
in classExtendedConfig<BlockConfig,
net.minecraft.world.level.block.Block>
-
getConfigPropertyPrefix
Deprecated.- Overrides:
getConfigPropertyPrefix
in classExtendedConfig<BlockConfig,
net.minecraft.world.level.block.Block> - Parameters:
annotation
- The annotation to define the prefix for.- Returns:
- The prefix that will be used inside the config file for
ConfigurableProperty
's.
-