Class ConfigurableTypeAction<C extends ExtendedConfig<C,I>,I>
java.lang.Object
org.cyclops.cyclopscore.config.configurabletypeaction.ConfigurableTypeAction<C,I>
- Type Parameters:
C
- The subclass of ExtendedConfig.I
- The instance corresponding to this config.
- Direct Known Subclasses:
CapabilityAction
,ConfigurableTypeActionForge
,DummyAction
,FluidAction
An action that is used to register Configurables.
Used inside of
ConfigHandler
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onRegisterForge
(C eConfig) Logic to register things right after the Forge registries have been created.void
onRegisterForgeFilled
(C eConfig) Logic to register things before Forge registries are being filled.void
onRegisterModInit
(C eConfig) Logic to register the eConfig target when the config is being loaded during mod construction.void
onRegisterSetup
(C eConfig) Logic to register the eConfig target when the config is being loaded during theFMLCommonSetupEvent
.static <C extends ExtendedConfigForge<C,
I>, I>
voidregister
(C config) Register the forge registry entry inside the given config.static <C extends ExtendedConfigForge<C,
I>, I>
voidRegister the forge registry entry inside the given config.static <C extends ExtendedConfigForge<C,
I>, I>
voidregister
(net.minecraft.core.Registry<? super I> registry, C config) Register the forge registry entry inside the given config.static <C extends ExtendedConfigForge<C,
I>, I>
voidRegister the forge registry entry inside the given config.
-
Constructor Details
-
ConfigurableTypeAction
public ConfigurableTypeAction()
-
-
Method Details
-
onRegisterModInit
Logic to register the eConfig target when the config is being loaded during mod construction.- Parameters:
eConfig
- The config to be registered.
-
onRegisterForge
Logic to register things right after the Forge registries have been created.- Parameters:
eConfig
- The config to be registered.
-
onRegisterForgeFilled
Logic to register things before Forge registries are being filled.- Parameters:
eConfig
- The config to be registered.
-
onRegisterSetup
Logic to register the eConfig target when the config is being loaded during theFMLCommonSetupEvent
.- Parameters:
eConfig
- The config to be registered.
-
register
Register the forge registry entry inside the given config.- Type Parameters:
C
- The subclass of ExtendedConfig.I
- The instance corresponding to this config.- Parameters:
config
- The corresponding config.
-
register
public static <C extends ExtendedConfigForge<C,I>, void registerI> (C config, @Nullable Callable<?> callback) Register the forge registry entry inside the given config.- Type Parameters:
C
- The subclass of ExtendedConfig.I
- The instance corresponding to this config.- Parameters:
config
- The corresponding config.callback
- A callback that will be called when the entry is registered.
-
register
public static <C extends ExtendedConfigForge<C,I>, void registerI> (net.minecraft.core.Registry<? super I> registry, C config) Register the forge registry entry inside the given config.- Type Parameters:
C
- The subclass of ExtendedConfig.I
- The instance corresponding to this config.- Parameters:
registry
- The registry.config
- The corresponding config.
-
register
public static <C extends ExtendedConfigForge<C,I>, void registerI> (net.minecraft.core.Registry<? super I> registry, C config, @Nullable Callable<?> callback) Register the forge registry entry inside the given config.- Type Parameters:
C
- The subclass of ExtendedConfig.I
- The instance corresponding to this config.- Parameters:
registry
- The registry.config
- The config.callback
- A callback that will be called when the entry is registered.
-