diff options
Diffstat (limited to 'Server/Plugins/APIDump/APIDesc.lua')
-rw-r--r-- | Server/Plugins/APIDump/APIDesc.lua | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index e2b0043a1..a6b6a957d 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -10183,8 +10183,8 @@ a_Player:OpenWindow(Window); Params = { { - Name = "Player", - Type = "cPlayer", + Name = "Entity", + Type = "cEntity", }, }, Returns = @@ -10194,7 +10194,7 @@ a_Player:OpenWindow(Window); Type = "boolean", }, }, - Notes = "Tries to make the player collect the pickup. Returns true if the pickup was collected, at least partially.", + Notes = "Tries to make the entity collect the pickup. Returns true if the pickup was collected, at least partially.", }, GetAge = { @@ -18877,6 +18877,24 @@ end }, Notes = "Returns true if the specified item type is any kind of a tool (axe, hoe, pickaxe, shovel or FIXME: sword)", }, + IsVillagerFood = + { + IsStatic = true, + Params = + { + { + Name = "ItemType", + Type = "number", + }, + }, + Returns = + { + { + Type = "boolean", + }, + }, + Notes = "Returns true if the specified item type is any kind of a pickable food by a villager (potato, carrot, wheat, bread and any kind of seeds).", + } }, AdditionalInfo = { |