cItems


Index:
Articles
Classes
Hooks

Quick navigation:
cArrowEntity
cBeaconEntity
cBlockArea
cBlockEntity
cBlockEntityWithItems
cBlockInfo
cBoundingBox
cBrewingstandEntity
cChatColor
cChestEntity
cChunkDesc
cClientHandle
cCommandBlockEntity
cCompositeChat
cCraftingGrid
cCraftingRecipe
cCryptoHash
cCuboid
cDispenserEntity
cDropperEntity
cDropSpenserEntity
cEnchantments
cEntity
cEntityEffect
cExpBottleEntity
cFile
cFireChargeEntity
cFireworkEntity
cFloater
cFlowerPotEntity
cFurnaceEntity
cGhastFireballEntity
cHangingEntity
cHopperEntity
cIniFile
cInventory
cItem
cItemFrame
cItemGrid
cItems
cJson
cJukeboxEntity
cLineBlockTracer
cLuaWindow
cMap
cMapManager
cMobHeadEntity
cMobSpawnerEntity
cMojangAPI
cMonster
cNetwork
cNoteEntity
cObjective
cPainting
cPawn
cPickup
cPlayer
cPlugin
cPluginLua
cPluginManager
cProjectileEntity
cRankManager
cRoot
cScoreboard
cServer
cServerHandle
cSignEntity
cSplashPotionEntity
cStatManager
cStringCompression
cTCPLink
cTeam
cThrownEggEntity
cThrownEnderPearlEntity
cThrownSnowballEntity
cTNTEntity
cTracer
cUDPEndpoint
cUrlClient
cUrlParser
cWebAdmin
cWindow
cWitherSkullEntity
cWorld
HTTPFormData
HTTPRequest
HTTPTemplateRequest
ItemCategory
lxp
sqlite3
TakeDamageInfo
tolua
Vector3d
Vector3f
Vector3i
Globals

Contents


cItems class

This class represents a numbered collection (array) of cItem objects. The array indices start at zero, each consecutive item gets a consecutive index. This class is used for spawning multiple pickups or for mass manipulating an inventory.


Functions

NameParametersReturn valueNotes
() (constructor)
cItems
Creates a new cItems object
Add
cItemcItem
Adds a new item to the end of the collection
Add
ItemTypenumber
ItemCountnumber
ItemDamagenumber
Adds a new item to the end of the collection
Clear Removes all items from the collection
Contains
ItemcItem
boolean
Returns true if the collection contains an item that is fully equivalent to the parameter
ContainsType
ItemcItem
boolean
Returns true if the collection contains an item that is the same type as the parameter
Delete
Indexnumber
Deletes item at the specified index
Get
Indexnumber
cItem
Returns the item at the specified index
Set
Indexnumber
ItemTypenumber
ItemCountnumber
ItemDamagenumber
Sets the item at the specified index to the specified item
Set
Indexnumber
cItemcItem
Sets the item at the specified index to the specified item
Size
number
Returns the number of items in the collection
Generated on 2017-04-29 01:00:06, Build ID Unknown, Commit approx: 85f11694da64c2033026e82b71fcf9ac8ed69735