Interface ICraftTweakerPlugin
- All Known Implementing Classes:
BuiltinCraftTweakerPlugin,CraftTweakerPluginForge
public interface ICraftTweakerPlugin
Identifies a CraftTweaker Plugin.
Classes that implement this interface must be annotated with CraftTweakerPlugin to
enable automatic discovery by CraftTweaker. Refer to the documentation of the annotation for more details on class
structure.
All the methods will be invoked automatically by CraftTweaker as needed. Methods should not rely on global state when performing their tasks.
- Since:
- 9.1.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidManages plugin initialization tasks that might be required prior to the plugin lifecycle.default voidManages the registration of all components required to integrate ZenCode scripts and Java.default voidManages the registration of bracket expression parsers.default voidManages the registration of commands for the/ctmain command.default voidregisterEvents(IEventRegistrationHandler handler) Manages the registration of events andIEventBuses.default voidManages the registration of additional listeners invoked at specific points during CraftTweaker's lifecycle.default voidManages the registration ofIScriptLoaders.default voidManages the registration ofIScriptLoadSources.default voidManages the registration ofIScriptRunModuleConfigurators.default voidManages the registration ofIRecipeComponents.default voidManages the registration ofIRecipeHandlers.default voidManages the registration of components tied to theReplacersystem in CraftTweaker.default voidManages the registration of taggable elements and their tag managers.default voidManages the registration of elements necessary to manipulate villager trades.
-
Method Details
-
initialize
default void initialize()Manages plugin initialization tasks that might be required prior to the plugin lifecycle.This method is guaranteed to be called before any other registration methods, but after all plugins have been discovered.
- Since:
- 10.0
-
registerLoaders
Manages the registration ofIScriptLoaders.- Parameters:
handler- The handler responsible for registration.- Since:
- 9.1.0
- See Also:
-
registerLoadSource
Manages the registration ofIScriptLoadSources.- Parameters:
handler- The handler responsible for registration.- Since:
- 9.1.0
- See Also:
-
registerModuleConfigurators
Manages the registration ofIScriptRunModuleConfigurators.- Parameters:
handler- The handler responsible for registration.- Since:
- 9.1.0
- See Also:
-
registerBracketParsers
Manages the registration of bracket expression parsers.- Parameters:
handler- The handler responsible for registration.- Since:
- 9.1.0
- See Also:
-
registerRecipeComponents
Manages the registration ofIRecipeComponents.- Parameters:
handler- The handler responsible for registration.- Since:
- 10.0
- See Also:
-
registerRecipeHandlers
Manages the registration ofIRecipeHandlers.- Parameters:
handler- The handler responsible for registration.- Since:
- 9.1.0
- See Also:
-
manageJavaNativeIntegration
Manages the registration of all components required to integrate ZenCode scripts and Java.- Parameters:
handler- The handler responsible for registration.- Since:
- 9.1.0
- See Also:
-
registerListeners
Manages the registration of additional listeners invoked at specific points during CraftTweaker's lifecycle.- Parameters:
handler- The handler responsible for registration.- Since:
- 9.1.0
- See Also:
-
registerVillagerTradeConverters
Manages the registration of elements necessary to manipulate villager trades.- Parameters:
handler- The handler responsible for registration.- Since:
- 9.1.0
- See Also:
-
registerCommands
Manages the registration of commands for the/ctmain command.- Parameters:
handler- The handler responsible for registration.- Since:
- 9.1.0
- See Also:
-
registerTaggableElements
Manages the registration of taggable elements and their tag managers.- Parameters:
handler- The handler responsible for registration.- Since:
- 9.1.0
- See Also:
-
registerReplacerComponents
Manages the registration of components tied to theReplacersystem in CraftTweaker.- Parameters:
handler- The handler responsible for registration- Since:
- 10.0
- See Also:
-
registerEvents
Manages the registration of events andIEventBuses.- Parameters:
handler- The handler responsible for registration.- Since:
- 11.0.0
- See Also:
-