mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-13 12:43:51 +00:00
Initial commit
This commit is contained in:
parent
def8cb4153
commit
b691c43c44
19437 changed files with 4363922 additions and 0 deletions
42
Minecraft.World/DebugOptionsPacket.cpp
Normal file
42
Minecraft.World/DebugOptionsPacket.cpp
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
#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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue