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
ConstructorDescriptionBlockEntityConfig
(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
getResourceKey
Methods 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:ExtendedConfig
Get the unlocalized name (must be unique!) for this configurable.- Specified by:
getTranslationKey
in 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:ExtendedConfig
Get the full unlocalized name for this configurable.- Overrides:
getFullTranslationKey
in 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:ExtendedConfig
Return the configurable type for which this config holds data- Specified by:
getConfigurableType
in 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:
getRegistry
in 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.
-