cCraftingGrid


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


cCraftingGrid class

cCraftingGrid represents the player's crafting grid. It is used in OnCraftingNoRecipe, OnPostCrafting and OnPreCrafting hooks. Plugins may use it to inspect the items the player placed on their crafting grid.

Also, an object of this type is used in cCraftingRecipe's ConsumeIngredients() function for specifying the exact number of ingredients to consume in that recipe; plugins may use this to apply the crafting recipe.


Functions

NameParametersReturn valueNotes
() (constructor) Width, Height cCraftingGrid Creates a new CraftingGrid object. This new crafting grid is not related to any player, but may be needed for cCraftingRecipe's ConsumeIngredients function.
Clear Clears the entire grid
ConsumeGrid CraftingGrid Consumes items specified in CraftingGrid from the current contents. Used internally by cCraftingRecipe's ConsumeIngredients() function, but available to plugins, too.
Dump DEBUG build: Dumps the contents of the grid to the log. RELEASE build: no action
GetHeight number Returns the height of the grid
GetItem x, y cItem Returns the item at the specified coords
GetWidth number Returns the width of the grid
SetItem x, y, ItemType, ItemCount, ItemDamage Sets the item at the specified coords
SetItem x, y, cItem Sets the item at the specified coords
Generated on 2016-08-22 23:53:06, Build ID Unknown, Commit approx: 2ed4af74edd14ae17e1c6c64d44caa7b7fc30d5a