From cf75d7b2c5e57c614ccbcb0a6ad3a87bd20090d8 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Tue, 20 Feb 2018 10:43:28 +0000 Subject: cBlockInfo: Deprecate direct access to variables. (#4184) --- Server/Plugins/APIDump/APIDesc.lua | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'Server') diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index e3a23b266..eed6bd40f 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -74,7 +74,7 @@ return cBlockInfo = { Desc = [[ - This class is used to query and register block properties. + This class is used to query block properties. ]], Functions = { @@ -130,7 +130,7 @@ return Type = "cBlockInfo", }, }, - Notes = "Returns the {{cBlockInfo}} structure for the specified block type.", + Notes = "Returns the {{cBlockInfo}} structure for the specified block type. OBSOLETE, use static functions instead", }, GetHardness = { @@ -372,57 +372,57 @@ return m_BlockHeight = { Type = "number", - Notes = "The height of the block, a value between 0.0 and 1.0", + Notes = "The height of the block, a value between 0.0 and 1.0. OBSOLETE, use cBlockInfo:GetBlockHeight() instead.", }, m_CanBeTerraformed = { Type = "bool", - Notes = "Is this block suited to be terraformed?", + Notes = "Is this block suited to be terraformed? OBSOLETE, use cBlockInfo:CanBeTerraformed() instead.", }, m_FullyOccupiesVoxel = { Type = "bool", - Notes = "Does this block fully occupy its voxel - is it a 'full' block?", + Notes = "Does this block fully occupy its voxel - is it a 'full' block? OBSOLETE, use cBlockInfo:FullyOccupiesVoxel() instead.", }, m_Hardness = { Type = "number", - Notes = "The greater the value the longer the player needs to break the block.", + Notes = "The greater the value the longer the player needs to break the block. OBSOLETE, use cBlockInfo:GetHardness() instead.", }, m_IsSnowable = { Type = "bool", - Notes = "Can this block hold snow atop?", + Notes = "Can this block hold snow atop? OBSOLETE, use cBlockInfo:IsSnowable() instead", }, m_IsSolid = { Type = "bool", - Notes = "Is this block solid (player cannot walk through)?", + Notes = "Is this block solid (player cannot walk through)? OBSOLETE, use cBlockInfo:IsSolid() instead.", }, m_LightValue = { Type = "number", - Notes = "How much light do the blocks emit on their own?", + Notes = "How much light do the blocks emit on their own? OBSOLETE, use cBlockInfo:GetLightValue() instead.", }, m_OneHitDig = { Type = "bool", - Notes = "Is a block destroyed after a single hit?", + Notes = "Is a block destroyed after a single hit? OBSOLETE, use cBlockInfo:IsOneHitDig() instead.", }, m_PistonBreakable = { Type = "bool", - Notes = "Can a piston break this block?", + Notes = "Can a piston break this block? OBSOLETE, use cBlockInfo:IsPistonBreakable instead.", }, m_SpreadLightFalloff = { Type = "number", - Notes = "How much light do the blocks consume?", + Notes = "How much light do the blocks consume? OBSOLETE, use cBlockInfo:GetSpreadLightFalloff() instead.", }, m_Transparent = { Type = "bool", - Notes = "Is a block completely transparent? (light doesn't get decreased(?))", + Notes = "Is a block completely transparent? (light doesn't get decreased(?)). OBSOLETE, use cBlockInfo:IsTransparent() instead.", }, }, }, -- cgit v1.2.3