summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_12.cpp
diff options
context:
space:
mode:
authormathiascode <mathiascode@users.noreply.github.com>2017-06-14 21:01:09 +0200
committerLukas Pioch <lukas@zgow.de>2017-06-14 21:57:59 +0200
commit7fa5725f3b2fcdd043c6c6eff932131a320c9f00 (patch)
tree0c8783a47cda71a90b74ed709e9a184041252ac9 /src/Protocol/Protocol_1_12.cpp
parentProtocol 1.12: Fixed missing override specifier (diff)
downloadcuberite-7fa5725f3b2fcdd043c6c6eff932131a320c9f00.tar
cuberite-7fa5725f3b2fcdd043c6c6eff932131a320c9f00.tar.gz
cuberite-7fa5725f3b2fcdd043c6c6eff932131a320c9f00.tar.bz2
cuberite-7fa5725f3b2fcdd043c6c6eff932131a320c9f00.tar.lz
cuberite-7fa5725f3b2fcdd043c6c6eff932131a320c9f00.tar.xz
cuberite-7fa5725f3b2fcdd043c6c6eff932131a320c9f00.tar.zst
cuberite-7fa5725f3b2fcdd043c6c6eff932131a320c9f00.zip
Diffstat (limited to 'src/Protocol/Protocol_1_12.cpp')
-rw-r--r--src/Protocol/Protocol_1_12.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Protocol/Protocol_1_12.cpp b/src/Protocol/Protocol_1_12.cpp
index 8d56a95bd..a0f2b9aa7 100644
--- a/src/Protocol/Protocol_1_12.cpp
+++ b/src/Protocol/Protocol_1_12.cpp
@@ -1287,6 +1287,34 @@ void cProtocol_1_12::SendTimeUpdate(Int64 a_WorldAge, Int64 a_TimeOfDay, bool a_
+void cProtocol_1_12::SendSetRawTitle(const AString & a_Title)
+{
+ ASSERT(m_State == 3); // In game mode?
+
+ cPacketizer Pkt(*this, 0x47); // Title packet
+ Pkt.WriteVarInt32(0); // Set title
+
+ Pkt.WriteString(a_Title);
+}
+
+
+
+
+
+void cProtocol_1_12::SendSetRawSubTitle(const AString & a_SubTitle)
+{
+ ASSERT(m_State == 3); // In game mode?
+
+ cPacketizer Pkt(*this, 0x47); // Title packet
+ Pkt.WriteVarInt32(1); // Set subtitle
+
+ Pkt.WriteString(a_SubTitle);
+}
+
+
+
+
+
void cProtocol_1_12::SendTitleTimes(int a_FadeInTicks, int a_DisplayTicks, int a_FadeOutTicks)
{
ASSERT(m_State == 3); // In game mode?