diff options
author | Mattes D <github@xoft.cz> | 2019-10-16 10:06:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-16 10:06:34 +0200 |
commit | 221cc4ec5cb6301743e947eaabed3fecedba796f (patch) | |
tree | 4e44c8bb7523e5d1d04468fc906ae24674c10abc /src/Item.h | |
parent | Fixed crash in hopper while pulling items from blockentity above itself (#4412) (diff) | |
download | cuberite-221cc4ec5cb6301743e947eaabed3fecedba796f.tar cuberite-221cc4ec5cb6301743e947eaabed3fecedba796f.tar.gz cuberite-221cc4ec5cb6301743e947eaabed3fecedba796f.tar.bz2 cuberite-221cc4ec5cb6301743e947eaabed3fecedba796f.tar.lz cuberite-221cc4ec5cb6301743e947eaabed3fecedba796f.tar.xz cuberite-221cc4ec5cb6301743e947eaabed3fecedba796f.tar.zst cuberite-221cc4ec5cb6301743e947eaabed3fecedba796f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Item.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Item.h b/src/Item.h index a94f35176..306e36b0a 100644 --- a/src/Item.h +++ b/src/Item.h @@ -20,6 +20,7 @@ // fwd: class cItemHandler; +class cItemGrid; class cColor; namespace Json @@ -234,6 +235,15 @@ class cItems // tolua_export : public std::vector<cItem> { // tolua_export public: + + cItems(const cItems &) = default; + cItems(cItems &&) = default; + cItems & operator = (const cItems &) = default; + cItems & operator = (cItems &&) = default; + + /** Constructs a new instance containing the specified item. */ + cItems(cItem && a_InitialItem); + // tolua_begin /** Need a Lua-accessible constructor */ @@ -254,6 +264,9 @@ public: push_back(cItem(a_ItemType, a_ItemCount, a_ItemDamage)); } + /** Adds a copy of all items in a_ItemGrid. */ + void AddItemGrid(const cItemGrid & a_ItemGrid); + // tolua_end } ; // tolua_export |