diff options
author | madmaxoft <github@xoft.cz> | 2013-11-15 13:44:07 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-11-15 13:44:07 +0100 |
commit | 2ed8e384192154daf8af94cda390980de88bb6aa (patch) | |
tree | d8b619bb71379b8c465f86fefbb459b974d79735 /MCServer/Plugins | |
parent | APIDump: Documented cSignEntity. (diff) | |
download | cuberite-2ed8e384192154daf8af94cda390980de88bb6aa.tar cuberite-2ed8e384192154daf8af94cda390980de88bb6aa.tar.gz cuberite-2ed8e384192154daf8af94cda390980de88bb6aa.tar.bz2 cuberite-2ed8e384192154daf8af94cda390980de88bb6aa.tar.lz cuberite-2ed8e384192154daf8af94cda390980de88bb6aa.tar.xz cuberite-2ed8e384192154daf8af94cda390980de88bb6aa.tar.zst cuberite-2ed8e384192154daf8af94cda390980de88bb6aa.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/APIDump/APIDesc.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua index fe5d7bed1..741b912a6 100644 --- a/MCServer/Plugins/APIDump/APIDesc.lua +++ b/MCServer/Plugins/APIDump/APIDesc.lua @@ -504,7 +504,7 @@ World:ForEachChestInChunk(Player:GetChunkX(), Player:GetChunkZ(), Contents = [[ To manipulate block entities while the chunk is generated, first use SetBlockTypeMeta() to set the correct block type and meta at the position. Then use the GetBlockEntity() to create and - return the correct block entity instance. Finally, use tolua.cast() to cast to the proper + return the correct block entity instance. Finally, use {{tolua}}.cast() to cast to the proper type.</p> Note that you don't need to check if a block entity has previously existed at the place, because GetBlockEntity() will automatically re-create the correct type for you.</p> @@ -756,6 +756,8 @@ end enchInfinity = { Notes = "" }, enchKnockback = { Notes = "" }, enchLooting = { Notes = "" }, + enchLuckOfTheSea = { Notes = "" }, + enchLure = { Notes = "" }, enchPower = { Notes = "" }, enchProjectileProtection = { Notes = "" }, enchProtection = { Notes = "" }, @@ -1267,6 +1269,7 @@ These ItemGrids are available in the API and can be manipulated by the plugins, DamageItem = { Params = "[Amount]", Return = "bool", Notes = "Adds the specified damage. Returns true when damage reaches max value and the item should be destroyed (but doesn't destroy the item)" }, Empty = { Params = "", Return = "", Notes = "Resets the instance to an empty item" }, GetMaxDamage = { Params = "", Return = "number", Notes = "Returns the maximum value for damage that this item can get before breaking; zero if damage is not accounted for for this item type" }, + GetMaxStackSize = { Params = "", Return = "number", Notes = "Returns the maximum stack size for this item." }, IsDamageable = { Params = "", Return = "bool", Notes = "Returns true if this item does account for its damage" }, IsEmpty = { Params = "", Return = "bool", Notes = "Returns true if this object represents an empty item (zero count or invalid ID)" }, IsEqual = { Params = "cItem", Return = "bool", Notes = "Returns true if the item in the parameter is the same as the one stored in the object (type, damage and enchantments)" }, |