Package org.moddingx.libx.registration
Interface Registerable
- All Known Implementing Classes:
BlockBase
,BlockBE
,DecoratedBlock
,EnumObjects
,FluidBase
,ItemInventory
,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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Interface to collect additional objects that are registered together with aRegisterable
. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
registerAdditional
(RegistrationContext ctx, Registerable.EntryCollector builder) Registers additional objects.default void
Similar toregisterAdditional(RegistrationContext, EntryCollector)
but only invoked on the client.default void
setupClient
(SetupContext ctx) Do stuff needed in the client setup phase.default void
setupCommon
(SetupContext ctx) Do stuff needed in the common setup phase.
-
Method Details
-
setupCommon
Do stuff needed in the common setup phase. This is called during parallel mod loading. -
setupClient
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. -
registerClientAdditional
@SuperChainRequired default void registerClientAdditional(RegistrationContext ctx, Registerable.EntryCollector builder) Similar toregisterAdditional(RegistrationContext, EntryCollector)
but only invoked on the client.
-