From 9749c3aac9dbfbc46a919193c97bb9c9e5339e03 Mon Sep 17 00:00:00 2001 From: Lukas Pioch Date: Thu, 24 Sep 2015 10:48:33 +0200 Subject: Implemented brewing --- .../Plugins/APIDump/Hooks/OnBrewingCompleting.lua | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Server/Plugins/APIDump/Hooks/OnBrewingCompleting.lua (limited to 'Server/Plugins/APIDump/Hooks/OnBrewingCompleting.lua') diff --git a/Server/Plugins/APIDump/Hooks/OnBrewingCompleting.lua b/Server/Plugins/APIDump/Hooks/OnBrewingCompleting.lua new file mode 100644 index 000000000..14429c8ff --- /dev/null +++ b/Server/Plugins/APIDump/Hooks/OnBrewingCompleting.lua @@ -0,0 +1,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.

+ 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. +

+ ]], + }, -- HOOK_BREWING_COMPLETING +} + + + + -- cgit v1.2.3