APIDump: Fixed cItem's description.
This commit is contained in:
parent
9352af683d
commit
b91c4a0986
@ -621,25 +621,30 @@ These ItemGrids are available in the API and can be manipulated by the plugins,
|
|||||||
},
|
},
|
||||||
Constants =
|
Constants =
|
||||||
{
|
{
|
||||||
invArmorCount = { Notes = "4" },
|
invArmorCount = { Notes = "Number of slots in the Armor part" },
|
||||||
invArmorOffset = { Notes = "0" },
|
invArmorOffset = { Notes = "Starting slot number of the Armor part" },
|
||||||
invInventoryCount = { Notes = "" },
|
invInventoryCount = { Notes = "Number of slots in the main inventory part" },
|
||||||
invInventoryOffset = { Notes = "4" },
|
invInventoryOffset = { Notes = "Starting slot number of the main inventory part" },
|
||||||
invHotbarCount = { Notes = "9" },
|
invHotbarCount = { Notes = "Number of slots in the Hotbar part" },
|
||||||
invHotbarOffset = { Notes = "" },
|
invHotbarOffset = { Notes = "Starting slot number of the Hotbar part" },
|
||||||
invNumSlots = { Notes = "" },
|
invNumSlots = { Notes = "Total number of slots in a cInventory" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
cItem =
|
cItem =
|
||||||
{
|
{
|
||||||
Desc = [[cItem is what defines an item or stack of items in the game, it contains the item ID, damage, quantity and enchantments. Each slot in a {{cEnchantments|cEnchantments}} class
|
Desc = [[
|
||||||
]],
|
cItem is what defines an item or stack of items in the game, it contains the item ID, damage,
|
||||||
|
quantity and enchantments. Each slot in a {{cInventory|cInventory}} class or a
|
||||||
|
{{cItemGrid|cItemGrid}} class is a cItem and each cPickup contains a cItem. The enchantments
|
||||||
|
are contained in a {{cEnchantments|cEnchantments}} class
|
||||||
|
]],
|
||||||
|
|
||||||
Functions =
|
Functions =
|
||||||
{
|
{
|
||||||
constructor = { Params = "", Return = "cItem", Notes = "Creates a new empty cItem obje" },
|
constructor1 = { Params = "", Return = "cItem", Notes = "Creates a new empty cItem obje" },
|
||||||
constructor = { Params = "ItemType, Count, Damage, EnchantmentString", Return = "cItem", Notes = "Creates a new cItem object of the specified type, count (1 by default), damage (0 by default) and enchantments (non-enchanted by default)" },
|
constructor2 = { Params = "ItemType, Count, Damage, EnchantmentString", Return = "cItem", Notes = "Creates a new cItem object of the specified type, count (1 by default), damage (0 by default) and enchantments (non-enchanted by default)" },
|
||||||
constructor = { Params = "cItem", Return = "cItem", Notes = "Creates an exact copy of the cItem object in the parameter" },
|
constructor3 = { Params = "cItem", Return = "cItem", Notes = "Creates an exact copy of the cItem object in the parameter" },
|
||||||
Clear = { Params = "", Return = "", Notes = "Resets the instance to an empty item" },
|
Clear = { Params = "", Return = "", Notes = "Resets the instance to an empty item" },
|
||||||
CopyOne = { Params = "", Return = "cItem", Notes = "Creates a copy of this object, with its count set to 1" },
|
CopyOne = { Params = "", Return = "cItem", Notes = "Creates a copy of this object, with its count set to 1" },
|
||||||
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)" },
|
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)" },
|
||||||
|
Loading…
Reference in New Issue
Block a user