Cuberite
A lightweight, fast and extensible game server for Minecraft
|
This class bridges a vector of cItem for safe access via Lua. More...
#include <Item.h>
Public Member Functions | |
void | Add (const cItem &a_Item) |
void | Add (short a_ItemType) |
void | Add (short a_ItemType, char a_ItemCount) |
void | Add (short a_ItemType, char a_ItemCount, short a_ItemDamage) |
void | AddItemGrid (const cItemGrid &a_ItemGrid) |
Adds a copy of all items in a_ItemGrid. More... | |
cItems (cItem &&a_InitialItem) | |
Constructs a new instance containing the specified item. More... | |
cItems (cItems &&)=default | |
cItems (const cItems &)=default | |
cItems (void) | |
Need a Lua-accessible constructor. More... | |
void | Clear (void) |
bool | Contains (const cItem &a_Item) |
bool | ContainsType (const cItem &a_Item) |
void | Delete (int a_Idx) |
cItem * | Get (int a_Idx) |
cItems & | operator= (cItems &&)=default |
cItems & | operator= (const cItems &)=default |
void | Set (int a_Idx, const cItem &a_Item) |
void | Set (int a_Idx, short a_ItemType, char a_ItemCount, short a_ItemDamage) |
size_t | Size (void) const |
This class bridges a vector of cItem for safe access via Lua.
It checks boundaries for all accesses Note that this class is zero-indexed!
|
default |
|
default |
cItems::cItems | ( | cItem && | a_InitialItem | ) |
|
inline |
|
inline |
|
inline |
void cItems::AddItemGrid | ( | const cItemGrid & | a_ItemGrid | ) |
void cItems::Set | ( | int | a_Idx, |
short | a_ItemType, | ||
char | a_ItemCount, | ||
short | a_ItemDamage | ||
) |