From 3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 8 Feb 2015 21:21:48 +0000 Subject: Handle client 'leave bed' request * Fixes #1728 --- src/Blocks/WorldInterface.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Blocks/WorldInterface.h') diff --git a/src/Blocks/WorldInterface.h b/src/Blocks/WorldInterface.h index 106c314e7..dcb7eee00 100644 --- a/src/Blocks/WorldInterface.h +++ b/src/Blocks/WorldInterface.h @@ -11,6 +11,7 @@ typedef cItemCallback cBlockEntityCallback; class cMonster; class cPlayer; +class cTask; class cWorldInterface @@ -59,4 +60,8 @@ public: /** Wakes up the simulators for the specified block */ virtual void WakeUpSimulators(int a_BlockX, int a_BlockY, int a_BlockZ) = 0; + /** Queues a task onto the tick thread, with the specified delay. + The task object will be deleted once the task is finished */ + virtual void ScheduleTask(int a_DelayTicks, cTask * a_Task) = 0; + }; -- cgit v1.2.3