summaryrefslogtreecommitdiffstats
path: root/Server/Plugins/APIDump/APIDesc.lua
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2017-07-28 12:11:07 +0200
committerLukas Pioch <lukas@zgow.de>2017-08-27 14:54:40 +0200
commitc171b272d96453f1a9d13d4623ac4bd3aa7d19e8 (patch)
tree32828d71b3de14de7489b080f07066dcf49e913e /Server/Plugins/APIDump/APIDesc.lua
parentImplement anvil chunk sparsing (diff)
downloadcuberite-c171b272d96453f1a9d13d4623ac4bd3aa7d19e8.tar
cuberite-c171b272d96453f1a9d13d4623ac4bd3aa7d19e8.tar.gz
cuberite-c171b272d96453f1a9d13d4623ac4bd3aa7d19e8.tar.bz2
cuberite-c171b272d96453f1a9d13d4623ac4bd3aa7d19e8.tar.lz
cuberite-c171b272d96453f1a9d13d4623ac4bd3aa7d19e8.tar.xz
cuberite-c171b272d96453f1a9d13d4623ac4bd3aa7d19e8.tar.zst
cuberite-c171b272d96453f1a9d13d4623ac4bd3aa7d19e8.zip
Diffstat (limited to 'Server/Plugins/APIDump/APIDesc.lua')
-rw-r--r--Server/Plugins/APIDump/APIDesc.lua107
1 files changed, 106 insertions, 1 deletions
diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua
index d7dc83043..c7d47219a 100644
--- a/Server/Plugins/APIDump/APIDesc.lua
+++ b/Server/Plugins/APIDump/APIDesc.lua
@@ -6943,7 +6943,7 @@ These ItemGrids are available in the API and can be manipulated by the plugins,
},
m_Enchantments =
{
- Type = "{{cEnchantments|cEnchantments}}}",
+ Type = "{{cEnchantments|cEnchantments}}",
Notes = "The enchantments of the item.",
},
m_ItemCount =
@@ -6971,6 +6971,11 @@ These ItemGrids are available in the API and can be manipulated by the plugins,
Type = "number",
Notes = "The repair cost of the item. The anvil need this value",
},
+ m_BookContent =
+ {
+ Type = "{{cBookContent|cBookContent}}",
+ Notes = "If it's a written or a writeable book, it contains the information of the book: Author, title and pages",
+ },
},
AdditionalInfo =
{
@@ -7014,6 +7019,106 @@ local Item5 = cItem(E_ITEM_DIAMOND_CHESTPLATE, 1, 0, "thorns=1;unbreaking=3");
},
},
},
+ cBookContent =
+ {
+ Desc = [[
+This class contains the information for a signed or writeable book: The author, title and the pages. A page of the writeable book is a simple string. For a signed book it can be a json string. For the json string use {{cCompositeChat}} to create a page and then the function {{cCompositeChat#CreateJsonString_1|CreateJsonString}} to get the json string.
+]],
+ Functions =
+ {
+ constructor =
+ {
+ Notes = "Creates a empty book",
+ },
+ SetAuthor =
+ {
+ Params =
+ {
+ {
+ Name = "Author",
+ Type = "string",
+ },
+ },
+ Notes = "Set the author of the book",
+ },
+ GetAuthor =
+ {
+ Returns =
+ {
+ {
+ Type = "string",
+ },
+ },
+ Notes = "Get the author of the book",
+ },
+ SetTitle =
+ {
+ Params =
+ {
+ {
+ Name = "Title",
+ Type = "string",
+ },
+ },
+ Notes = "Set the title of the book",
+ },
+ GetTitle =
+ {
+ Returns =
+ {
+ {
+ Type = "string",
+ },
+ },
+ Notes = "Returns the title of the book",
+ },
+ AddPage =
+ {
+ Params =
+ {
+ {
+ Name = "Page",
+ Type = "string",
+ },
+ },
+ Notes = "Add a page to the end of the book. Note: A page can be a json string",
+ },
+ GetPages =
+ {
+ Returns =
+ {
+ {
+ Type = "table",
+ },
+ },
+ Notes = "Returns the pages of the book as a table",
+ },
+ SetPages =
+ {
+ Params =
+ {
+ {
+ Type = "table",
+ },
+ },
+ Notes = "Set the pages of the book",
+ },
+ Clear =
+ {
+ Notes = "Clears the whole book",
+ },
+ IsEmpty =
+ {
+ Returns =
+ {
+ {
+ Type = "boolean",
+ },
+ },
+ Notes = "Returns true if the book has no author, title and no pages",
+ },
+ },
+ },
cItemFrame =
{
Functions =