summaryrefslogtreecommitdiffstats
path: root/Server/Plugins/APIDump
diff options
context:
space:
mode:
authorLane Kolbly <lane@rscheme.org>2017-07-12 12:30:43 +0200
committerLukas Pioch <lukas@zgow.de>2017-07-12 12:30:43 +0200
commitb61898c30c1e1049e8767ca98fd38e7010a32e45 (patch)
tree51df04d644da1f344e0781bf70a7c426b45d91ae /Server/Plugins/APIDump
parentChanging pickup lifetime and combining semantics, making these adjustable in the lua api. (#3843) (diff)
downloadcuberite-b61898c30c1e1049e8767ca98fd38e7010a32e45.tar
cuberite-b61898c30c1e1049e8767ca98fd38e7010a32e45.tar.gz
cuberite-b61898c30c1e1049e8767ca98fd38e7010a32e45.tar.bz2
cuberite-b61898c30c1e1049e8767ca98fd38e7010a32e45.tar.lz
cuberite-b61898c30c1e1049e8767ca98fd38e7010a32e45.tar.xz
cuberite-b61898c30c1e1049e8767ca98fd38e7010a32e45.tar.zst
cuberite-b61898c30c1e1049e8767ca98fd38e7010a32e45.zip
Diffstat (limited to 'Server/Plugins/APIDump')
-rw-r--r--Server/Plugins/APIDump/APIDesc.lua172
1 files changed, 172 insertions, 0 deletions
diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua
index 65ae69144..29545a692 100644
--- a/Server/Plugins/APIDump/APIDesc.lua
+++ b/Server/Plugins/APIDump/APIDesc.lua
@@ -1730,6 +1730,178 @@ end
},
},
},
+ cColor =
+ {
+ Desc = [[
+ Encapsulates a RGB color, e.g. for armor.
+ ]],
+ Functions =
+ {
+ Clear =
+ {
+ Notes = "Resets the color to uninitialized."
+ },
+ constructor =
+ {
+ {
+ Returns = { {Type="cColor"} },
+ Notes = "Creates an uninitialized cColor. Each component must be between 0 and 255, inclusive.",
+ },
+ {
+ Params =
+ {
+ {
+ Name = "Red",
+ Type = "number",
+ },
+ {
+ Name = "Green",
+ Type = "number",
+ },
+ {
+ Name = "Blue",
+ Type = "number",
+ },
+ },
+ Returns = { {Type="cColor"} },
+ Notes = "Creates the specified cColor. All components must be between 0 and 255, inclusive.",
+ },
+ },
+ GetColor =
+ {
+ Returns =
+ {
+ {
+ Name = "Red",
+ Type = "number",
+ },
+ {
+ Name = "Green",
+ Type = "number",
+ },
+ {
+ Name = "Blue",
+ Type = "number",
+ },
+ },
+ Notes = "Returns the color's red, green, and blue components, respectively."
+ },
+ GetRed =
+ {
+ Returns =
+ {
+ {
+ Name = "Red",
+ Type = "number",
+ },
+ },
+ Notes = "Returns the color's red component."
+ },
+ GetGreen =
+ {
+ Returns =
+ {
+ {
+ Name = "Green",
+ Type = "number",
+ },
+ },
+ Notes = "Returns the color's green component."
+ },
+ GetBlue =
+ {
+ Returns =
+ {
+ {
+ Name = "Blue",
+ Type = "number",
+ },
+ },
+ Notes = "Returns the color's blue component."
+ },
+ IsValid =
+ {
+ Returns =
+ {
+ {
+ Type = "boolean"
+ },
+ },
+ Notes = "True if the color is valid, false if the color has not been set yet."
+ },
+ SetColor =
+ {
+ Params =
+ {
+ {
+ Name = "Red",
+ Type = "number"
+ },
+ {
+ Name = "Green",
+ Type = "number"
+ },
+ {
+ Name = "Blue",
+ Type = "number"
+ },
+ },
+ Notes = "Sets the color's red, green, and blue components. Values range from 0 to 255."
+ },
+ SetRed =
+ {
+ Params =
+ {
+ {
+ Name = "Red",
+ Type = "number",
+ },
+ },
+ Notes = "Sets the color's red component. Must be between 0 and 255, inclusive."
+ },
+ SetGreen =
+ {
+ Params =
+ {
+ {
+ Name = "Green",
+ Type = "number",
+ },
+ },
+ Notes = "Sets the color's green component. Must be between 0 and 255, inclusive."
+ },
+ SetBlue =
+ {
+ Params =
+ {
+ {
+ Name = "Blue",
+ Type = "number",
+ },
+ },
+ Notes = "Sets the color's blue component. Must be between 0 and 255, inclusive."
+ },
+ },
+ Constants =
+ {
+ COLOR_LIMIT =
+ {
+ Notes = "The upper bound (exclusive) for a color component",
+ },
+ COLOR_MAX =
+ {
+ Notes = "The maximum value for a color component",
+ },
+ COLOR_MIN =
+ {
+ Notes = "The minimum value for a color component",
+ },
+ COLOR_NONE =
+ {
+ Notes = "A constant denoting the color is invalid (note: use IsValid)",
+ },
+ },
+ },
cCompositeChat =
{
Desc = [[