summaryrefslogtreecommitdiffstats
path: root/Server/Plugins
diff options
context:
space:
mode:
author12xx12 <44411062+12xx12@users.noreply.github.com>2020-09-05 17:07:01 +0200
committerGitHub <noreply@github.com>2020-09-05 17:07:01 +0200
commit2d197e147e4ede9b2b38692a88f620e78feba437 (patch)
tree8b2e90e59898ef4c029d72a696b7bed71c5a2f25 /Server/Plugins
parentWriteConsoleInput can return FALSE when running as servic (diff)
downloadcuberite-2d197e147e4ede9b2b38692a88f620e78feba437.tar
cuberite-2d197e147e4ede9b2b38692a88f620e78feba437.tar.gz
cuberite-2d197e147e4ede9b2b38692a88f620e78feba437.tar.bz2
cuberite-2d197e147e4ede9b2b38692a88f620e78feba437.tar.lz
cuberite-2d197e147e4ede9b2b38692a88f620e78feba437.tar.xz
cuberite-2d197e147e4ede9b2b38692a88f620e78feba437.tar.zst
cuberite-2d197e147e4ede9b2b38692a88f620e78feba437.zip
Diffstat (limited to 'Server/Plugins')
-rw-r--r--Server/Plugins/APIDump/Classes/BlockEntities.lua35
1 files changed, 32 insertions, 3 deletions
diff --git a/Server/Plugins/APIDump/Classes/BlockEntities.lua b/Server/Plugins/APIDump/Classes/BlockEntities.lua
index f4486c6d3..b5e4cdf3b 100644
--- a/Server/Plugins/APIDump/Classes/BlockEntities.lua
+++ b/Server/Plugins/APIDump/Classes/BlockEntities.lua
@@ -1415,14 +1415,43 @@ World:ForEachChestInChunk(Player:GetChunkX(), Player:GetChunkZ(),
cNoteEntity =
{
Desc = [[
- This class represents a note block entity in the world. It takes care of the note block's pitch,
+ This class represents a note block entity in the world. It takes care of the note block's note,
and also can play the sound, either when the {{cPlayer|player}} right-clicks it, redstone activates
it, or upon a plugin's request.</p>
<p>
- The pitch is stored as an integer between 0 and 24.
+ The note is stored as an integer between 0 and 24.
]],
Functions =
{
+ GetNote =
+ {
+ Returns =
+ {
+ {
+ Type = "number",
+ },
+ },
+ Notes = "Returns the current note set for the block",
+ },
+ IncrementNote =
+ {
+ Notes = "Adds 1 to the current note. Wraps around to 0 when the note cannot go any higher.",
+ },
+ MakeSound =
+ {
+ Notes = "Plays the sound for all {{cClientHandle|clients}} near this block.",
+ },
+ SetNote =
+ {
+ Params =
+ {
+ {
+ Name = "Note",
+ Type = "number",
+ },
+ },
+ Notes = "Sets a new note for the block.",
+ },
GetPitch =
{
Returns =
@@ -1450,7 +1479,7 @@ World:ForEachChestInChunk(Player:GetChunkX(), Player:GetChunkZ(),
Type = "number",
},
},
- Notes = "Sets a new pitch for the block.",
+ Notes = "Sets a new note for the block.",
},
},
Inherits = "cBlockEntity",