Initializer Context
Initialization context for OptiGUI-compatible mods.
Add an entrypoint named optigui
of type EntryPoint to obtain an instance of initializer context. You can initialize OptiGUI-related behavior in EntryPoint.onInitialize.
Functions
Link copied to clipboard
Registers a filter factory.
Link copied to clipboard
fun <T : BlockEntity> registerPreprocessor(type: Class<out BlockEntity>, processor: BlockEntityPreprocessor<T>): Boolean
Registers the preprocessor for a block entity.
fun <T : Entity> registerPreprocessor(type: Class<out Entity>, processor: EntityPreprocessor<T>): Boolean
Registers the preprocessor for an entity.