diff options
author | Lane Kolbly <lane@rscheme.org> | 2017-08-25 11:56:01 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2017-08-25 11:56:01 +0200 |
commit | 87c89a172782c5ea8e2114931bd48f9aa03543ce (patch) | |
tree | 6ddedb3ff20e4224d0c488ddabb5a7d22e71d2f8 /src/Blocks/BlockHandler.h | |
parent | Use ref instead of pointer (diff) | |
download | cuberite-87c89a172782c5ea8e2114931bd48f9aa03543ce.tar cuberite-87c89a172782c5ea8e2114931bd48f9aa03543ce.tar.gz cuberite-87c89a172782c5ea8e2114931bd48f9aa03543ce.tar.bz2 cuberite-87c89a172782c5ea8e2114931bd48f9aa03543ce.tar.lz cuberite-87c89a172782c5ea8e2114931bd48f9aa03543ce.tar.xz cuberite-87c89a172782c5ea8e2114931bd48f9aa03543ce.tar.zst cuberite-87c89a172782c5ea8e2114931bd48f9aa03543ce.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockHandler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockHandler.h b/src/Blocks/BlockHandler.h index b96b3b770..1638abf8f 100644 --- a/src/Blocks/BlockHandler.h +++ b/src/Blocks/BlockHandler.h @@ -88,8 +88,8 @@ public: virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta); /** Called when the item is mined to convert it into pickups. Pickups may specify multiple items. Appends items to a_Pickups, preserves its original contents. - Overloaded method with coords and digger, for blocks that needs to access the block entity, e.g. a bed */ - virtual void ConvertToPickups(cEntity * a_Digger, cItems & a_Pickups, NIBBLETYPE a_BlockMeta, int a_BlockX, int a_BlockY, int a_BlockZ) {} + Overloaded method with coords and world interface for blocks that needs to access the block entity, e.g. a bed. */ + virtual void ConvertToPickups(cWorldInterface & a_WorldInterface, cItems & a_Pickups, NIBBLETYPE a_BlockMeta, int a_BlockX, int a_BlockY, int a_BlockZ) {} /** Handles the dropping, but not destruction, of a block based on what ConvertTo(Verbatim)Pickups() returns, including the spawning of pickups and alertion of plugins @param a_Digger The entity causing the drop; it may be nullptr |