the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include <iostream>
3#include "InputOutputStream.h"
4#include "net.minecraft.world.item.h"
5#include "PacketListener.h"
6#include "DebugOptionsPacket.h"
7
8
9
10DebugOptionsPacket::~DebugOptionsPacket()
11{
12}
13
14DebugOptionsPacket::DebugOptionsPacket()
15{
16 m_uiVal = 0L;
17}
18
19DebugOptionsPacket::DebugOptionsPacket(unsigned int uiVal)
20{
21 this->m_uiVal = uiVal;
22}
23
24void DebugOptionsPacket::handle(PacketListener *listener)
25{
26 listener->handleDebugOptions(shared_from_this());
27}
28
29void DebugOptionsPacket::read(DataInputStream *dis) //throws IOException
30{
31 m_uiVal = (unsigned int)dis->readInt();
32}
33
34void DebugOptionsPacket::write(DataOutputStream *dos) // throws IOException
35{
36 dos->writeInt((int)m_uiVal);
37}
38
39int DebugOptionsPacket::getEstimatedSize()
40{
41 return sizeof(int);
42}