Handlers read from InPacket instead of SeekableLittleEndianAccessor
This commit is contained in:
@@ -38,7 +38,7 @@ public class ByteBufInPacket implements InPacket {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Point readPoint() {
|
||||
public Point readPos() {
|
||||
final short x = byteBuf.readShortLE();
|
||||
final short y = byteBuf.readShortLE();
|
||||
return new Point(x, y);
|
||||
|
||||
@@ -7,7 +7,7 @@ public interface InPacket extends Packet {
|
||||
short readShort();
|
||||
int readInt();
|
||||
long readLong();
|
||||
Point readPoint();
|
||||
Point readPos();
|
||||
String readString();
|
||||
byte[] readBytes(int numberOfBytes);
|
||||
void skip(int numberOfBytes);
|
||||
|
||||
Reference in New Issue
Block a user