Underground update.

This commit is contained in:
MobiusDev
2015-11-07 01:36:06 +00:00
parent cf1f829606
commit 37dbd02716
750 changed files with 102520 additions and 58051 deletions

View File

@ -38,6 +38,17 @@ public abstract class SendablePacket<T extends MMOClient<?>> extends AbstractPac
_buf.putFloat(value);
}
/**
* Write <B>byte</B> to the buffer. <BR>
* 8bit integer (00)
* @param data
*/
protected final void writeC(final boolean data)
{
int value = data ? 0x01 : 0x00;
_buf.put((byte) value);
}
/**
* Write <B>byte</B> to the buffer. <BR>
* 8bit integer (00)
@ -78,6 +89,17 @@ public abstract class SendablePacket<T extends MMOClient<?>> extends AbstractPac
_buf.putInt(value);
}
/**
* Write <B>int</B> to the buffer. <BR>
* 32bit integer (00 00 00 00)
* @param value
*/
protected final void writeD(final boolean value)
{
int val = value ? 0x01 : 0x00;
_buf.putInt(val);
}
/**
* Write <B>long</B> to the buffer. <BR>
* 64bit integer (00 00 00 00 00 00 00 00)