Skip to content

Optimization Components

Muqsit Rayyan edited this page Oct 20, 2020 · 2 revisions

An optimization component is handles a specific kind of optimization. Each component is mapped to a unique identifier and can be enabled and disabled during runtime. Each component can be configured to automatically enable on startup by setting the enabled field to true (or false) in plugin_data/AggressiveOptz/components.json.

Plugin developers can register additional optimization components using Loader::getApi()->getComponentFactory()->register("myplugin:item_entity_limiter", ItemEntityLimiterOptimizationComponent::class) and enable it Loader::getApi()->getComponentManager()->enable("myplugin:item_entity_limiter").

Clone this wiki locally