diff options
author | 12xx12 <44411062+12xx12@users.noreply.github.com> | 2020-11-06 16:00:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 16:00:59 +0100 |
commit | 36a67df105ab4774d2a250ef3c7d6336cb50566e (patch) | |
tree | 2725a48a3c8a8de5f6ef062d9415d019042ba486 /src/Entities/EnderCrystal.h | |
parent | Players are no longer kicked when clicking on bedrock (#5023) (diff) | |
download | cuberite-36a67df105ab4774d2a250ef3c7d6336cb50566e.tar cuberite-36a67df105ab4774d2a250ef3c7d6336cb50566e.tar.gz cuberite-36a67df105ab4774d2a250ef3c7d6336cb50566e.tar.bz2 cuberite-36a67df105ab4774d2a250ef3c7d6336cb50566e.tar.lz cuberite-36a67df105ab4774d2a250ef3c7d6336cb50566e.tar.xz cuberite-36a67df105ab4774d2a250ef3c7d6336cb50566e.tar.zst cuberite-36a67df105ab4774d2a250ef3c7d6336cb50566e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/EnderCrystal.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/Entities/EnderCrystal.h b/src/Entities/EnderCrystal.h index b2a28c517..7e783ffd2 100644 --- a/src/Entities/EnderCrystal.h +++ b/src/Entities/EnderCrystal.h @@ -19,26 +19,30 @@ public: CLASS_PROTODEF(cEnderCrystal) cEnderCrystal(Vector3d a_Pos, bool a_ShowBottom); + cEnderCrystal(Vector3d a_Pos, Vector3i a_BeamTarget, bool a_DisplayBeam, bool a_ShowBottom); - // Getters and Setters - bool ShowsBottom() const { return m_ShowBottom; } - void SetShowBottom(bool a_ShowBottom) { m_ShowBottom = a_ShowBottom; } + // tolua_begin Vector3i GetBeamTarget() const { return m_BeamTarget; } - void SetBeamTarget(Vector3i a_BeamTarget) { m_BeamTarget = a_BeamTarget; } + void SetBeamTarget(Vector3i a_BeamTarget); - /** If the EnderCrystal should send it's beam to the client and store to disk. */ + /** If the EnderCrystal should send it's beam to the client and save it. */ bool DisplaysBeam() const { return m_DisplayBeam; } - void SetDisplayBeam(bool a_DisplayBeam) { m_DisplayBeam = a_DisplayBeam; } + void SetDisplayBeam(bool a_DisplayBeam); -private: + bool ShowsBottom() const { return m_ShowBottom; } + void SetShowBottom(bool a_ShowBottom); - // If the bedrock base should be displayed - bool m_ShowBottom; + // tolua_end + +private: Vector3i m_BeamTarget; bool m_DisplayBeam; + // If the bedrock base should be displayed. + bool m_ShowBottom; + // cEntity overrides: virtual void SpawnOn(cClientHandle & a_ClientHandle) override; virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override; |