void PacketJoinGame::write(PacketBuffer &buffer) { buffer.putInt(entityId); buffer.putUByte(gameMode); buffer.putByte(dimension); buffer.putUByte(difficulty); buffer.putUByte(maxPlayers); buffer.putString(levelType); buffer.putBool(reducedDebugInfo); }
void PacketAnimation::write(PacketBuffer &buffer) { buffer.putVarInt(entityId); buffer.putUByte(animationId); }