This hook is called whenever a brewing stand is completing the brewing process. Plugins may
refuse the completing of the brewing process.
See also the HOOK_BREWING_COMPLETED hook for a similar hook, is called after the
brewing process has been completed.
Callback function
The default name for the callback function is OnBrewingCompleting. It has the following signature:
function OnBrewingCompleting(World, Brewingstand)
Parameters:
Name | Type | Notes |
World | cWorld | World where the brewing stand resides. |
Brewingstand | cBrewingstand | The brewing stand that completes the brewing process. |
If the function returns false or no value, Cuberite calls other plugins with this event. If the function returns true,
no other plugin's callback is called and the brewing process is canceled.
Code examplesRegistering the callback
cPluginManager:AddHook(cPluginManager.HOOK_BREWING_COMPLETING, MyOnBrewingCompleting);
|