Package org.moddingx.libx.registration
Interface Registerable
- All Known Implementing Classes:
BlockBase
,BlockBE
,DecoratedBlock
,EnumObjects
,FluidBase
,MenuBlock
,MenuBlockBE
public interface Registerable
Everything that is registered to
ModXRegistration
that implements this can specify dependencies
and things to be done during setup phase.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Interface to collect additional objects that are registered together with aRegisterable
.static interface
Some helpful methods to track elements with names depending on this elements registry name. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
initTracking
(RegistrationContext ctx, Registerable.TrackingCollector builder) Adds fields with additional registry values to theRegistryTracker
.default void
registerAdditional
(RegistrationContext ctx, Registerable.EntryCollector builder) Registers additional objects.default void
Do stuff needed in the client setup phase.default void
Do stuff needed in the common setup phase.
-
Method Details
-
registerCommon
Do stuff needed in the common setup phase. This is called during parallel mod loading. -
registerClient
Do stuff needed in the client setup phase. This is called during parallel mod loading. -
registerAdditional
@SuperChainRequired default void registerAdditional(RegistrationContext ctx, Registerable.EntryCollector builder) Registers additional objects. Those may beRegisterable
as well. These objects will be registered with the id of this object and optionally a name suffix. -
initTracking
@SuperChainRequired default void initTracking(RegistrationContext ctx, Registerable.TrackingCollector builder) throws ReflectiveOperationException Adds fields with additional registry values to theRegistryTracker
. This called, unlessRegistrationBuilder.disableRegistryTracking()
()} is set.- Throws:
ReflectiveOperationException
-