summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-07-30 22:50:34 +0200
committerHowaner <franzi.moos@googlemail.com>2014-07-30 22:50:34 +0200
commitdcd226d9040409dec41c8f1f8909262946308ab0 (patch)
tree79479a67d634ae8a622f247acc283d2ea57888c6 /src/BlockEntities
parentAdded beacon documentation. (diff)
downloadcuberite-dcd226d9040409dec41c8f1f8909262946308ab0.tar
cuberite-dcd226d9040409dec41c8f1f8909262946308ab0.tar.gz
cuberite-dcd226d9040409dec41c8f1f8909262946308ab0.tar.bz2
cuberite-dcd226d9040409dec41c8f1f8909262946308ab0.tar.lz
cuberite-dcd226d9040409dec41c8f1f8909262946308ab0.tar.xz
cuberite-dcd226d9040409dec41c8f1f8909262946308ab0.tar.zst
cuberite-dcd226d9040409dec41c8f1f8909262946308ab0.zip
Diffstat (limited to 'src/BlockEntities')
-rw-r--r--src/BlockEntities/BeaconEntity.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/BlockEntities/BeaconEntity.h b/src/BlockEntities/BeaconEntity.h
index 07b2b85dc..59a4bdbd9 100644
--- a/src/BlockEntities/BeaconEntity.h
+++ b/src/BlockEntities/BeaconEntity.h
@@ -41,6 +41,9 @@ public:
virtual bool Tick(float a_Dt, cChunk & a_Chunk) override;
virtual void UsedBy(cPlayer * a_Player) override;
+ /** Modify the beacon level. (It is needed to load the beacon corectly) */
+ void SetBeaconLevel(char a_Level) { m_BeaconLevel = a_Level; }
+
// tolua_begin
/** Is the beacon active? */