summaryrefslogblamecommitdiffstats
path: root/Server/Plugins/APIDump/Hooks/OnBrewingCompleting.lua
blob: 6e4160d6649e581e983f63e81ac1631aeb51d50e (plain) (tree)
1
2
3
4
5
6
7
8






                                                                                
                                                                                                                                           






                                                                                                                               
                                                                                                                                                     











                                                                                                                                              
return
{
	HOOK_BREWING_COMPLETING =
	{
		CalledWhen = "A brewing process is completing.",
		DefaultFnName = "OnBrewingCompleting",  -- also used as pagename
		Desc = [[
			This hook is called whenever a {{cBrewingstandEntity|brewing stand}} is completing the brewing process. Plugins may
			refuse the completing of the brewing process.<p>
			See also the {{OnBrewingCompleted|HOOK_BREWING_COMPLETED}} hook for a similar hook, is called after the
			brewing process has been completed.
		]],
		Params =
		{
			{ Name = "World", Type = "{{cWorld}}", Notes = "World where the brewing stand resides." },
			{ Name = "Brewingstand", Type = "{{cBrewingstandEntity}}", Notes = "The brewing stand that completes the brewing process." },
		},
		Returns = [[
			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.
			<p>
		]],
	},  -- HOOK_BREWING_COMPLETING
}