summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorLane Kolbly <lane@rscheme.org>2017-07-12 12:13:27 +0200
committerLukas Pioch <lukas@zgow.de>2017-07-12 12:13:27 +0200
commit793acd267f4a5801e2aa9e9dca7cf51c5a595a02 (patch)
tree0e2740c09bfbbff7fb297f990ecca1b0090ddcc3 /src/World.h
parentIf entity is a player, send relmove packets. (diff)
downloadcuberite-793acd267f4a5801e2aa9e9dca7cf51c5a595a02.tar
cuberite-793acd267f4a5801e2aa9e9dca7cf51c5a595a02.tar.gz
cuberite-793acd267f4a5801e2aa9e9dca7cf51c5a595a02.tar.bz2
cuberite-793acd267f4a5801e2aa9e9dca7cf51c5a595a02.tar.lz
cuberite-793acd267f4a5801e2aa9e9dca7cf51c5a595a02.tar.xz
cuberite-793acd267f4a5801e2aa9e9dca7cf51c5a595a02.tar.zst
cuberite-793acd267f4a5801e2aa9e9dca7cf51c5a595a02.zip
Diffstat (limited to '')
-rw-r--r--src/World.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/World.h b/src/World.h
index bae7adbb9..a3180e008 100644
--- a/src/World.h
+++ b/src/World.h
@@ -443,6 +443,9 @@ public:
/** Spawns item pickups for each item in the list. May compress pickups if too many entities. All pickups get the speed specified. */
virtual void SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double a_BlockY, double a_BlockZ, double a_SpeedX, double a_SpeedY, double a_SpeedZ, bool IsPlayerCreated = false) override;
+ /** Spawns a single pickup containing the specified item. */
+ virtual UInt32 SpawnItemPickup(double a_PosX, double a_PosY, double a_PosZ, const cItem & a_Item, float a_SpeedX = 0.f, float a_SpeedY = 0.f, float a_SpeedZ = 0.f, int a_LifetimeTicks = 6000, bool a_CanCombine = true) override;
+
/** Spawns an falling block entity at the given position.
Returns the UniqueID of the spawned falling block, or cEntity::INVALID_ID on failure. */
UInt32 SpawnFallingBlock(int a_X, int a_Y, int a_Z, BLOCKTYPE BlockType, NIBBLETYPE BlockMeta);