summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-08-28 22:42:37 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-08-28 22:42:37 +0200
commit5d736b653f9db324a940b28d6ce5c44bf28fc7d2 (patch)
treed9be664b7e4a878dbae4207a1a858dc3daa3a654 /src
parentFastNBTWriter: AddString now uses string_view (diff)
downloadcuberite-5d736b653f9db324a940b28d6ce5c44bf28fc7d2.tar
cuberite-5d736b653f9db324a940b28d6ce5c44bf28fc7d2.tar.gz
cuberite-5d736b653f9db324a940b28d6ce5c44bf28fc7d2.tar.bz2
cuberite-5d736b653f9db324a940b28d6ce5c44bf28fc7d2.tar.lz
cuberite-5d736b653f9db324a940b28d6ce5c44bf28fc7d2.tar.xz
cuberite-5d736b653f9db324a940b28d6ce5c44bf28fc7d2.tar.zst
cuberite-5d736b653f9db324a940b28d6ce5c44bf28fc7d2.zip
Diffstat (limited to '')
-rw-r--r--src/ChunkStay.h2
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.h4
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator/RedstoneHandler.h8
3 files changed, 13 insertions, 1 deletions
diff --git a/src/ChunkStay.h b/src/ChunkStay.h
index a7c038a9c..59b6841a4 100644
--- a/src/ChunkStay.h
+++ b/src/ChunkStay.h
@@ -65,7 +65,7 @@ public:
/** Called when a specific chunk become available. */
virtual void OnChunkAvailable(int a_ChunkX, int a_ChunkZ) = 0;
- /** Caled once all of the contained chunks are available.
+ /** Called once all of the contained chunks are available.
If returns true, the ChunkStay is automatically disabled by the ChunkMap; if it returns false, the ChunkStay is kept. */
virtual bool OnAllChunksAvailable(void) = 0;
diff --git a/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.h b/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.h
index 657638254..6d49291cb 100644
--- a/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.h
+++ b/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.h
@@ -3,6 +3,10 @@
#include "RedstoneSimulatorChunkData.h"
+
+
+
+
class ForEachSourceCallback
{
public:
diff --git a/src/Simulator/IncrementalRedstoneSimulator/RedstoneHandler.h b/src/Simulator/IncrementalRedstoneSimulator/RedstoneHandler.h
index 25c646df3..fdac7901f 100644
--- a/src/Simulator/IncrementalRedstoneSimulator/RedstoneHandler.h
+++ b/src/Simulator/IncrementalRedstoneSimulator/RedstoneHandler.h
@@ -3,9 +3,17 @@
#include "RedstoneSimulatorChunkData.h"
+
+
+
+
class cChunk;
class ForEachSourceCallback;
+
+
+
+
namespace RedstoneHandler
{
/** Asks a redstone component at the source position how much power it will deliver to the querying position.