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:
-
Field Summary
Fields inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
configProperties -
Constructor Summary
ConstructorsConstructorDescriptionBlockEntityConfig(ModBase mod, String namedId, Function<BlockEntityConfig<T>, net.minecraft.world.level.block.entity.BlockEntityType<T>> elementConstructor) Create a new config -
Method Summary
Modifier and TypeMethodDescriptionReturn the configurable type for which this config holds dataGet the full unlocalized name for this configurable.net.minecraftforge.registries.IForgeRegistry<? super net.minecraft.world.level.block.entity.BlockEntityType<T>>Get the unlocalized name (must be unique!) for this configurable.Methods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge
getResourceKeyMethods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
compareTo, downCast, getConfigPropertyPrefix, getInstance, getSubUniqueName, initializeInstance, onConfigPropertyReload, onForgeRegistered, onRegistered, save, showDoubleInitError
-
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 idelementConstructor- The element constructor.
-
-
Method Details
-
getTranslationKey
Description copied from class:ExtendedConfigGet the unlocalized name (must be unique!) for this configurable.- Specified by:
getTranslationKeyin classExtendedConfig<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
Description copied from class:ExtendedConfigGet the full unlocalized name for this configurable.- Overrides:
getFullTranslationKeyin classExtendedConfig<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
Description copied from class:ExtendedConfigReturn the configurable type for which this config holds data- Specified by:
getConfigurableTypein classExtendedConfig<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:
getRegistryin classExtendedConfigForge<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.
-