summaryrefslogtreecommitdiffstats
path: root/src/Item.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2019-10-16 10:06:34 +0200
committerGitHub <noreply@github.com>2019-10-16 10:06:34 +0200
commit221cc4ec5cb6301743e947eaabed3fecedba796f (patch)
tree4e44c8bb7523e5d1d04468fc906ae24674c10abc /src/Item.h
parentFixed crash in hopper while pulling items from blockentity above itself (#4412) (diff)
downloadcuberite-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 'src/Item.h')
-rw-r--r--src/Item.h13
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