summaryrefslogtreecommitdiffstats
path: root/Server/Plugins/APIDump/Hooks/OnBrewingCompleting.lua
blob: 14429c8ffccc4bb79efa9cae511f110ccc835710 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
return
{
	HOOK_BREWING_COMPLETING =
	{
		CalledWhen = "A brewing process is completing.",
		DefaultFnName = "OnBrewingCompleting",  -- also used as pagename
		Desc = [[
			This hook is called whenever a {{cBrewingstand|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 = "{{cBrewingstand}}", 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
}