Underground update.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user