cItems


Index:
Articles
Classes
Hooks

Quick navigation:
BannerPattern
BossBarColor
BossBarDivisionType
cArrowEntity
cBeaconEntity
cBedEntity
cBlockArea
cBlockEntity
cBlockEntityWithItems
cBlockInfo
cBoat
cBoundingBox
cBrewingstandEntity
cChatColor
cChestEntity
cChunkDesc
cClientHandle
cColor
cCommandBlockEntity
cCompositeChat
cCraftingGrid
cCraftingRecipe
cCryptoHash
cCuboid
cDispenserEntity
cDropperEntity
cDropSpenserEntity
cEnchantments
cEnderCrystal
cEntity
cEntityEffect
cExpBottleEntity
cExpOrb
cFallingBlock
cFile
cFireChargeEntity
cFireworkEntity
cFloater
cFlowerPotEntity
cFurnaceEntity
cGhastFireballEntity
cHangingEntity
cHopperEntity
cIniFile
cInventory
cItem
cItemFrame
cItemGrid
cItems
cJson
cJukeboxEntity
cLeashKnot
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
cStringCompression
cTCPLink
cTeam
cThrownEggEntity
cThrownEnderPearlEntity
cThrownSnowballEntity
cTNTEntity
cUDPEndpoint
cUrlClient
cUrlParser
CustomStatistic
cUUID
cWebAdmin
cWindow
cWitherSkullEntity
cWorld
EffectID
HTTPFormData
HTTPRequest
HTTPTemplateRequest
ItemCategory
lxp
SmokeDirection
sqlite3
StatisticsManager
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 empty 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
AddItemGrid
ItemGridcItemGrid
Adds a copy of each item in the specified ItemGrid.
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 by APIDump on 2022-10-28 17:00:47, Build ID Unknown, Commit approx: 21ec3ebe26bff24b5fc6d96f86a441c9c9628247