From ea386eaab12206e585e01720808dc37585569535 Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Fri, 27 Mar 2020 13:03:28 +0100 Subject: Lock hopper when powered by redstone (#4347) * Lock hopper when powered by redstone * Add to manual bindings * Add hopper API documentation Co-authored-by: Mat --- Server/Plugins/APIDump/Classes/World.lua | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'Server/Plugins/APIDump') diff --git a/Server/Plugins/APIDump/Classes/World.lua b/Server/Plugins/APIDump/Classes/World.lua index eb0e0d17d..c35733b4a 100644 --- a/Server/Plugins/APIDump/Classes/World.lua +++ b/Server/Plugins/APIDump/Classes/World.lua @@ -939,6 +939,35 @@ function OnAllChunksAvailable() All return values from the callbacks are i }, Notes = "If there is a furnace at the specified coords, calls the CallbackFunction with the {{cFurnaceEntity}} parameter representing the furnace. The CallbackFunction has the following signature:
function Callback({{cFurnaceEntity|FurnaceEntity}})
The function returns false if there is no furnace, or if there is, it returns the bool value that the callback has returned.", }, + DoWithHopperAt = + { + Params = + { + { + Name = "BlockX", + Type = "number", + }, + { + Name = "BlockY", + Type = "number", + }, + { + Name = "BlockZ", + Type = "number", + }, + { + Name = "CallbackFunction", + Type = "function", + }, + }, + Returns = + { + { + Type = "boolean", + }, + }, + Notes = "If there is a hopper at the specified coords, calls the CallbackFunction with the {{cHopperEntity}} parameter representing the hopper. The CallbackFunction has the following signature:
function Callback({{cHopperEntity|cHopperEntity}})
The function returns false if there is no hopper, or if there is, it returns the bool value that the callback has returned.", + }, DoWithMobHeadAt = { Params = -- cgit v1.2.3