Class BlockEntityConfig<T extends net.minecraft.world.level.block.entity.BlockEntity>

java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<C,I>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge<BlockEntityConfig<T>,net.minecraft.world.level.block.entity.BlockEntityType<T>>
org.cyclops.cyclopscore.config.extendedconfig.BlockEntityConfig<T>
All Implemented Interfaces:
Comparable<ExtendedConfig<BlockEntityConfig<T>,net.minecraft.world.level.block.entity.BlockEntityType<T>>>

public abstract class BlockEntityConfig<T extends net.minecraft.world.level.block.entity.BlockEntity> extends ExtendedConfigForge<BlockEntityConfig<T>,net.minecraft.world.level.block.entity.BlockEntityType<T>>
Config for block entities.
See Also:
  • Constructor Details

    • BlockEntityConfig

      public BlockEntityConfig(ModBase mod, String namedId, Function<BlockEntityConfig<T>,net.minecraft.world.level.block.entity.BlockEntityType<T>> elementConstructor)
      Create a new config
      Parameters:
      mod - The mod instance.
      namedId - A unique name id
      elementConstructor - The element constructor.
  • Method Details

    • getTranslationKey

      public String getTranslationKey()
      Description copied from class: ExtendedConfig
      Get the unlocalized name (must be unique!) for this configurable.
      Specified by:
      getTranslationKey in class ExtendedConfig<BlockEntityConfig<T extends net.minecraft.world.level.block.entity.BlockEntity>,net.minecraft.world.level.block.entity.BlockEntityType<T extends net.minecraft.world.level.block.entity.BlockEntity>>
      Returns:
      The unlocalized name.
    • getFullTranslationKey

      public String getFullTranslationKey()
      Description copied from class: ExtendedConfig
      Get the full unlocalized name for this configurable.
      Overrides:
      getFullTranslationKey in class ExtendedConfig<BlockEntityConfig<T extends net.minecraft.world.level.block.entity.BlockEntity>,net.minecraft.world.level.block.entity.BlockEntityType<T extends net.minecraft.world.level.block.entity.BlockEntity>>
      Returns:
      The unlocalized name.
    • getConfigurableType

      public ConfigurableType getConfigurableType()
      Description copied from class: ExtendedConfig
      Return the configurable type for which this config holds data
      Specified by:
      getConfigurableType in class ExtendedConfig<BlockEntityConfig<T extends net.minecraft.world.level.block.entity.BlockEntity>,net.minecraft.world.level.block.entity.BlockEntityType<T extends net.minecraft.world.level.block.entity.BlockEntity>>
      Returns:
      the type of the configurable to where the config belongs
    • getRegistry

      public net.minecraftforge.registries.IForgeRegistry<? super net.minecraft.world.level.block.entity.BlockEntityType<T>> getRegistry()
      Specified by:
      getRegistry in class ExtendedConfigForge<BlockEntityConfig<T extends net.minecraft.world.level.block.entity.BlockEntity>,net.minecraft.world.level.block.entity.BlockEntityType<T extends net.minecraft.world.level.block.entity.BlockEntity>>
      Returns:
      The registry in which this should be registered.