Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
781 B · 42 lines
C++
at main
12345678910111213141516171819202122232425262728293031323334353637383940414243#include "stdafx.h"#include <iostream>#include "InputOutputStream.h"#include "net.minecraft.world.item.h"#include "PacketListener.h"#include "DebugOptionsPacket.h"
DebugOptionsPacket::~DebugOptionsPacket(){}
DebugOptionsPacket::DebugOptionsPacket(){ m_uiVal = 0L;}
DebugOptionsPacket::DebugOptionsPacket(unsigned int uiVal){ this->m_uiVal = uiVal;}
void DebugOptionsPacket::handle(PacketListener *listener){ listener->handleDebugOptions(shared_from_this());}
void DebugOptionsPacket::read(DataInputStream *dis) //throws IOException{ m_uiVal = (unsigned int)dis->readInt();}
void DebugOptionsPacket::write(DataOutputStream *dos) // throws IOException{ dos->writeInt((int)m_uiVal);}
int DebugOptionsPacket::getEstimatedSize() { return sizeof(int);}