summaryrefslogtreecommitdiffstats
path: root/src/Entities/EnderCrystal.h
diff options
context:
space:
mode:
author12xx12 <44411062+12xx12@users.noreply.github.com>2020-10-29 21:47:20 +0100
committerGitHub <noreply@github.com>2020-10-29 21:47:20 +0100
commit961d5eb420182add0b6cb4d92f260b885563389c (patch)
treec63fb7b3905d2ae59c539cca44845984128c27bb /src/Entities/EnderCrystal.h
parentRemove BLOCKENTITY_PROTODEF (diff)
downloadcuberite-961d5eb420182add0b6cb4d92f260b885563389c.tar
cuberite-961d5eb420182add0b6cb4d92f260b885563389c.tar.gz
cuberite-961d5eb420182add0b6cb4d92f260b885563389c.tar.bz2
cuberite-961d5eb420182add0b6cb4d92f260b885563389c.tar.lz
cuberite-961d5eb420182add0b6cb4d92f260b885563389c.tar.xz
cuberite-961d5eb420182add0b6cb4d92f260b885563389c.tar.zst
cuberite-961d5eb420182add0b6cb4d92f260b885563389c.zip
Diffstat (limited to 'src/Entities/EnderCrystal.h')
-rw-r--r--src/Entities/EnderCrystal.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/Entities/EnderCrystal.h b/src/Entities/EnderCrystal.h
index f29927549..b2a28c517 100644
--- a/src/Entities/EnderCrystal.h
+++ b/src/Entities/EnderCrystal.h
@@ -18,10 +18,27 @@ public:
CLASS_PROTODEF(cEnderCrystal)
- cEnderCrystal(Vector3d a_Pos);
+ cEnderCrystal(Vector3d a_Pos, bool a_ShowBottom);
+
+ // Getters and Setters
+ bool ShowsBottom() const { return m_ShowBottom; }
+ void SetShowBottom(bool a_ShowBottom) { m_ShowBottom = a_ShowBottom; }
+
+ Vector3i GetBeamTarget() const { return m_BeamTarget; }
+ void SetBeamTarget(Vector3i a_BeamTarget) { m_BeamTarget = a_BeamTarget; }
+
+ /** If the EnderCrystal should send it's beam to the client and store to disk. */
+ bool DisplaysBeam() const { return m_DisplayBeam; }
+ void SetDisplayBeam(bool a_DisplayBeam) { m_DisplayBeam = a_DisplayBeam; }
private:
+ // If the bedrock base should be displayed
+ bool m_ShowBottom;
+
+ Vector3i m_BeamTarget;
+ bool m_DisplayBeam;
+
// cEntity overrides:
virtual void SpawnOn(cClientHandle & a_ClientHandle) override;
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;