summaryrefslogtreecommitdiffstats
path: root/Server
diff options
context:
space:
mode:
Diffstat (limited to 'Server')
-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",