diff options
author | 12xx12 <44411062+12xx12@users.noreply.github.com> | 2021-03-05 16:08:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 16:08:30 +0100 |
commit | 8405b8969f205ffae219361dfc03f3b4c680ce73 (patch) | |
tree | cc1aef4347d9e399b80a32afa16b657885fd3603 /Server | |
parent | Add Mushrooms to Generator and fixed up the roofed forest (#5134) (diff) | |
download | cuberite-8405b8969f205ffae219361dfc03f3b4c680ce73.tar cuberite-8405b8969f205ffae219361dfc03f3b4c680ce73.tar.gz cuberite-8405b8969f205ffae219361dfc03f3b4c680ce73.tar.bz2 cuberite-8405b8969f205ffae219361dfc03f3b4c680ce73.tar.lz cuberite-8405b8969f205ffae219361dfc03f3b4c680ce73.tar.xz cuberite-8405b8969f205ffae219361dfc03f3b4c680ce73.tar.zst cuberite-8405b8969f205ffae219361dfc03f3b4c680ce73.zip |
Diffstat (limited to 'Server')
-rw-r--r-- | Server/Plugins/APIDump/APIDesc.lua | 189 |
1 files changed, 189 insertions, 0 deletions
diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index c84260903..411ee95f4 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -1569,6 +1569,128 @@ end }, Notes = "Sends a BlockChange packet to the client. This can be used to create fake blocks only for that player.", }, + SendBossBarAdd = + { + Params = + { + { + Name = "UniqueID", + Type = "number", + }, + { + Name = "Title", + Type = "cCompositeChat", + }, + { + Name = "FractionFilled", + Type = "number", + }, + { + Name = "Colour", + Type = "BossBarColor", + }, + { + Name = "DivisionType", + Type = "BossBarDivisionType", + }, + { + Name = "DarkenSky", + Type = "boolean", + }, + { + Name = "PlayEndMusic", + Type = "boolean", + }, + { + Name = "CreateFog", + Type = "boolean", + }, + }, + Notes = "Creates a boss bar on the client's UI. The boss bar is independent of any entity and has a lifetime and properties fully controlled by the plugin. Plugins are responsible for assigning a unique ID and removal.", + }, + SendBossBarUpdateFlags = + { + Params = + { + { + Name = "UniqueID", + Type = "number", + }, + { + Name = "DarkenSky", + Type = "boolean", + }, + { + Name = "PlayEndMusic", + Type = "boolean", + }, + { + Name = "CreateFog", + Type = "boolean", + }, + }, + Notes = "Updates a boss bar on the client's UI. Only updates some meta flags for additional effects.", + }, + SendBossBarUpdateStyle = + { + Params = + { + { + Name = "UniqueID", + Type = "number", + }, + { + Name = "Color", + Type = "BossBarColor", + }, + { + Name = "DivisionType", + Type = "BossBarDivisionType", + }, + }, + Notes = "Updates a boss bar on the client's UI. Only updates the visuals of the Boss Bar.", + }, + SendBossBarUpdateTitle = + { + Params = + { + { + Name = "UniqueID", + Type = "number", + }, + { + Name = "Title", + Type = "cCompositeChat", + }, + }, + Notes = "Updates a boss bar on the client's UI. Only Updates the text at the top.", + }, + SendBossBarRemove = + { + Params = + { + { + Name = "UniqueID", + Type = "number", + }, + }, + Notes = "Removes the boss bar with the given ID from the client's UI.", + }, + SendBossBarUpdateHealth = + { + Params = + { + { + Name = "UniqueID", + Type = "number", + }, + { + Name = "FractionFilled", + Type = "number", + }, + }, + Notes = "Updates the health displayed by the boss bar with the given ID.", + }, SendEntityAnimation = { Params = @@ -13120,6 +13242,73 @@ end }, -- ConstantGroups }, -- cWindow + BossBarColor = + { + Desc = [[ + An enumeration of boss bar display colours which can be used with {{cClientHandle#SendBossBarAdd|SendBossBarAdd}}. + ]], + Constants = + { + Pink = + { + Notes = "A pink boss bar." + }, + Blue = + { + Notes = "A blue boss bar." + }, + Red = + { + Notes = "A red boss bar." + }, + Green = + { + Notes = "A green boss bar." + }, + Yellow = + { + Notes = "A yellow boss bar." + }, + Purple = + { + Notes = "A purple boss bar." + }, + White = + { + Notes = "A white boss bar." + }, + }, + }, + BossBarDivisionType = + { + Desc = [[ + An enumeration of boss bar division types which can be used with {{cClientHandle#SendBossBarAdd|SendBossBarAdd}}. + These constants control the number of notches the bar itself renders with. + ]], + Constants = + { + None = + { + Notes = "A completely smooth boss bar." + }, + SixNotches = + { + Notes = "A six-notch'd boss bar." + }, + TenNotches = + { + Notes = "A ten-notch'd boss bar." + }, + TwelveNotches = + { + Notes = "A twelve notch'd boss bar." + }, + TwentyNotches = + { + Notes = "A twenty notch'd boss bar." + }, + }, + }, EffectID = { Desc = [[ |