diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-07-30 22:31:43 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-07-30 22:31:43 +0200 |
commit | 66d34b83d27a72ed4cc2598527c25dfb8c1a873c (patch) | |
tree | 195c44b6d76b906e065cdc7f0d2d96ed7680a2c1 /MCServer/Plugins/APIDump/Classes/BlockEntities.lua | |
parent | Changed return type from GetPrimaryPotion() and GetSecondaryPotion() (diff) | |
download | cuberite-66d34b83d27a72ed4cc2598527c25dfb8c1a873c.tar cuberite-66d34b83d27a72ed4cc2598527c25dfb8c1a873c.tar.gz cuberite-66d34b83d27a72ed4cc2598527c25dfb8c1a873c.tar.bz2 cuberite-66d34b83d27a72ed4cc2598527c25dfb8c1a873c.tar.lz cuberite-66d34b83d27a72ed4cc2598527c25dfb8c1a873c.tar.xz cuberite-66d34b83d27a72ed4cc2598527c25dfb8c1a873c.tar.zst cuberite-66d34b83d27a72ed4cc2598527c25dfb8c1a873c.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/APIDump/Classes/BlockEntities.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/Classes/BlockEntities.lua b/MCServer/Plugins/APIDump/Classes/BlockEntities.lua index de42f66df..294d47295 100644 --- a/MCServer/Plugins/APIDump/Classes/BlockEntities.lua +++ b/MCServer/Plugins/APIDump/Classes/BlockEntities.lua @@ -50,6 +50,32 @@ return }, }, + cBeaconEntity = + { + Desc = [[ + A beacon entity is a {{cBlockEntityWithItems|cBlockEntityWithItems}} descendant that represents a beacon + in the world. + ]], + + Inherits = "cBlockEntityWithItems", + + Functions = + { + IsActive = { Params = "", Return = "bool", Notes = "Is the beacon active?" }, + GetBeaconLevel = { Params = "", Return = "number", Notes = "Returns the beacon level. (0 - 4)" }, + GetPrimaryPotion = { Params = "", Return = "EffectType", Notes = "Returns the primary potion." }, + GetSecondaryPotion = { Params = "", Return = "EffectType", Notes = "Returns the secondary potion." }, + SelectPrimaryPotion = { Params = "EffectType", Return = "bool", Notes = "Select the primary potion. Returns false when the potion is invalid." }, + SelectSecondaryPotion = { Params = "EffectType", Return = "bool", Notes = "Select the secondary potion. Returns false when the potion is invalid." }, + CalculatePyramidLevel = { Params = "", Return = "number", Notes = "Calculate the amount of layers the pyramid below the beacon has." }, + IsBeaconBlocked = { Params = "", Return = "bool", Notes = "Is the beacon blocked by non-transparent blocks that are higher than the beacon?" }, + UpdateBeacon = { Params = "", Return = "", Notes = "Update the beacon." }, + GiveEffects = { Params = "", Return = "", Notes = "Give the near-players the effects." }, + IsMineralBlock = { Params = "BLOCKTYPE", Return = "bool", Notes = "Returns true if the block is a diamond block, a golden block, an iron block or an emerald block." }, + IsValidPotion = { Params = "EffectType", Return = "bool", Notes = "Returns true if the potion can be used." }, + }, + }, + cChestEntity = { Desc = [[ |