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 interfaceInterface to collect additional objects that are registered together with aRegisterable. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidregisterAdditional(RegistrationContext ctx, Registerable.EntryCollector builder) Registers additional objects.default voidSimilar toregisterAdditional(RegistrationContext, EntryCollector)but only invoked on the client.default voidsetupClient(SetupContext ctx) Do stuff needed in the client setup phase.default voidsetupCommon(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 beRegisterableas 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.
-