summaryrefslogtreecommitdiffstats
path: root/src/Blocks/ClearMetaOnDrop.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/Blocks/ClearMetaOnDrop.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/Blocks/ClearMetaOnDrop.h')
-rw-r--r--src/Blocks/ClearMetaOnDrop.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/Blocks/ClearMetaOnDrop.h b/src/Blocks/ClearMetaOnDrop.h
deleted file mode 100644
index 3a375e121..000000000
--- a/src/Blocks/ClearMetaOnDrop.h
+++ /dev/null
@@ -1,24 +0,0 @@
-
-#pragma once
-
-// mixin for use to clear meta values when the block is converted to a pickup
-
-// Usage: inherit from this class, passing the parent class as the parameter Base
-// For example to use in class Foo which should inherit Bar use
-// class Foo : public cClearMetaOnDrop<Bar>;
-
-template <class Base>
-class cClearMetaOnDrop : public Base
-{
-public:
-
- cClearMetaOnDrop(BLOCKTYPE a_BlockType) :
- Base(a_BlockType)
- {}
-
- virtual ~cClearMetaOnDrop() override {}
- virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
- {
- a_Pickups.push_back(cItem(this->m_BlockType));
- }
-};