Cuberite
A lightweight, fast and extensible game server for Minecraft
Macros | Variables
Protocol_1_9.cpp File Reference
#include "Globals.h"
#include "json/json.h"
#include "Protocol_1_9.h"
#include "ChunkDataSerializer.h"
#include "../mbedTLS++/Sha1Checksum.h"
#include "Packetizer.h"
#include "../ClientHandle.h"
#include "../Root.h"
#include "../Server.h"
#include "../World.h"
#include "../StringCompression.h"
#include "../CompositeChat.h"
#include "../Statistics.h"
#include "../WorldStorage/FastNBT.h"
#include "../Entities/ExpOrb.h"
#include "../Entities/Minecart.h"
#include "../Entities/FallingBlock.h"
#include "../Entities/Painting.h"
#include "../Entities/Pickup.h"
#include "../Entities/Player.h"
#include "../Entities/ItemFrame.h"
#include "../Entities/ArrowEntity.h"
#include "../Entities/FireworkEntity.h"
#include "../Entities/SplashPotionEntity.h"
#include "../Items/ItemSpawnEgg.h"
#include "../Mobs/IncludeAllMonsters.h"
#include "../UI/HorseWindow.h"
#include "../BlockEntities/BeaconEntity.h"
#include "../BlockEntities/CommandBlockEntity.h"
#include "../BlockEntities/MobHeadEntity.h"
#include "../BlockEntities/MobSpawnerEntity.h"
#include "../BlockEntities/FlowerPotEntity.h"
#include "../Bindings/PluginManager.h"
Include dependency graph for Protocol_1_9.cpp:

Go to the source code of this file.

Macros

#define HANDLE_PACKET_READ(ByteBuf, Proc, Type, Var)
 
#define HANDLE_READ(ByteBuf, Proc, Type, Var)
 

Variables

bool g_ShouldLogCommIn
 
bool g_ShouldLogCommOut
 
static const UInt32 MAIN_HAND = 0
 Value for main hand in Hand parameter for Protocol 1.9. More...
 
const uLongf MAX_COMPRESSED_PACKET_LEN = 200 KiB
 
const int MAX_ENC_LEN = 512
 
static const UInt32 OFF_HAND = 1
 
static const Int16 SLOT_NUM_OUTSIDE = -999
 The slot number that the client uses to indicate "outside the window". More...
 

Macro Definition Documentation

#define HANDLE_PACKET_READ (   ByteBuf,
  Proc,
  Type,
  Var 
)
Value:
Type Var; \
do { \
{ \
if (!ByteBuf.Proc(Var)) \
{ \
ByteBuf.CheckValid(); \
return false; \
} \
ByteBuf.CheckValid(); \
} \
} while (false)

Definition at line 84 of file Protocol_1_9.cpp.

#define HANDLE_READ (   ByteBuf,
  Proc,
  Type,
  Var 
)
Value:
Type Var; \
do { \
if (!ByteBuf.Proc(Var))\
{\
return;\
} \
} while (false)

Definition at line 71 of file Protocol_1_9.cpp.

Variable Documentation

bool g_ShouldLogCommIn
bool g_ShouldLogCommOut
const UInt32 MAIN_HAND = 0
static

Value for main hand in Hand parameter for Protocol 1.9.

Definition at line 64 of file Protocol_1_9.cpp.

const uLongf MAX_COMPRESSED_PACKET_LEN = 200 KiB

Definition at line 102 of file Protocol_1_9.cpp.

const int MAX_ENC_LEN = 512

Definition at line 101 of file Protocol_1_9.cpp.

const UInt32 OFF_HAND = 1
static

Definition at line 65 of file Protocol_1_9.cpp.

const Int16 SLOT_NUM_OUTSIDE = -999
static

The slot number that the client uses to indicate "outside the window".

Definition at line 61 of file Protocol_1_9.cpp.