summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol18x.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-03-21 13:00:20 +0100
committerMattes D <github@xoft.cz>2015-03-21 13:00:20 +0100
commitb1d4b3bb96629b3624e8328d7b1a0bce5333bb7d (patch)
tree2cb73fbb8e15ca8f65d794ddb9d9717cdd27f5ce /src/Protocol/Protocol18x.h
parentAPIDump: Added inheritance checking. (diff)
downloadcuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar
cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar.gz
cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar.bz2
cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar.lz
cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar.xz
cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar.zst
cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol18x.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/Protocol/Protocol18x.h b/src/Protocol/Protocol18x.h
index 92d9825ef..d7365c44f 100644
--- a/src/Protocol/Protocol18x.h
+++ b/src/Protocol/Protocol18x.h
@@ -169,24 +169,24 @@ protected:
m_Out.WriteBool(a_Value);
}
- void WriteByte(Byte a_Value)
+ void WriteByte(UInt8 a_Value)
{
- m_Out.WriteByte(a_Value);
+ m_Out.WriteBEUInt8(a_Value);
}
- void WriteChar(char a_Value)
+ void WriteChar(Int8 a_Value)
{
- m_Out.WriteChar(a_Value);
+ m_Out.WriteBEInt8(a_Value);
}
- void WriteShort(short a_Value)
+ void WriteShort(Int16 a_Value)
{
- m_Out.WriteBEShort(a_Value);
+ m_Out.WriteBEInt16(a_Value);
}
- void WriteInt(int a_Value)
+ void WriteInt(Int32 a_Value)
{
- m_Out.WriteBEInt(a_Value);
+ m_Out.WriteBEInt32(a_Value);
}
void WriteInt64(Int64 a_Value)
@@ -332,6 +332,9 @@ protected:
void StartEncryption(const Byte * a_Key);
+ /** Converts the BlockFace received by the protocol into eBlockFace constants.
+ If the received value doesn't match any of our eBlockFace constants, BLOCK_FACE_NONE is returned. */
+ eBlockFace FaceIntToBlockFace(Int8 a_FaceInt);
} ;