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:
  • ExtendedConfigCommon
  • Field Details

    • dynamicBlockVariantLocation

      @Deprecated public net.minecraft.client.resources.model.ModelResourceLocation dynamicBlockVariantLocation
      Deprecated.
    • dynamicItemVariantLocation

      @Deprecated public net.minecraft.client.resources.model.ModelResourceLocation dynamicItemVariantLocation
      Deprecated.
  • 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,? extends net.minecraft.world.item.BlockItem> getDefaultItemConstructor(ModBase<?> mod)
      Deprecated.
    • getDefaultItemConstructor

      protected static BiFunction<BlockConfig,net.minecraft.world.level.block.Block,? extends net.minecraft.world.item.BlockItem> getDefaultItemConstructor(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,? extends net.minecraft.world.item.Item> getItemConstructor()
      Deprecated.
    • getItemInstance

      @Nullable public net.minecraft.world.item.Item getItemInstance()
      Deprecated.
    • setItemInstance

      public void setItemInstance(@Nullable net.minecraft.world.item.Item itemInstance)
      Deprecated.
    • getModelName

      public String getModelName(net.minecraft.world.item.ItemStack itemStack)
      Deprecated.
      Specified by:
      getModelName in interface org.cyclops.cyclopscore.config.extendedconfig.IModelProviderConfig
    • getTranslationKey

      public String getTranslationKey()
      Deprecated.
      Specified by:
      getTranslationKey in class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<BlockConfig,net.minecraft.world.level.block.Block,ModBase<?>>
    • getFullTranslationKey

      public String getFullTranslationKey()
      Deprecated.
      Overrides:
      getFullTranslationKey in class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigCommon<BlockConfig,net.minecraft.world.level.block.Block,ModBase<?>>
    • getConfigurableType

      public ConfigurableType getConfigurableType()
      Deprecated.
      Specified by:
      getConfigurableType in class ExtendedConfig<BlockConfig,net.minecraft.world.level.block.Block>
    • getDefaultCreativeTabEntriesPublic

      public Collection<net.minecraft.world.item.ItemStack> getDefaultCreativeTabEntriesPublic()
      Deprecated.
    • defaultCreativeTabEntries

      protected Collection<net.minecraft.world.item.ItemStack> defaultCreativeTabEntries()
      Deprecated.
    • getRegistry

      public net.minecraft.core.Registry<? super net.minecraft.world.level.block.Block> getRegistry()
      Deprecated.
      Specified by:
      getRegistry in class ExtendedConfigForge<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

      @Nullable @Deprecated public net.minecraft.client.color.block.BlockColor getBlockColorHandler()
      Deprecated.
      Returns:
      An optional color handler for the block instance.
    • getConfigPropertyPrefixPublic

      public String getConfigPropertyPrefixPublic(ConfigurableProperty annotation)
      Deprecated.
      Overrides:
      getConfigPropertyPrefixPublic in class ExtendedConfig<BlockConfig,net.minecraft.world.level.block.Block>
    • getConfigPropertyPrefix

      protected String getConfigPropertyPrefix(ConfigurableProperty annotation)
      Deprecated.
      Overrides:
      getConfigPropertyPrefix in class ExtendedConfig<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.