Package zombie.network
Class ZomboidNetData
java.lang.Object
zombie.network.ZomboidNetData
- All Implemented Interfaces:
IZomboidPacket
public class ZomboidNetData extends java.lang.Object implements IZomboidPacket
-
Field Summary
Fields Modifier and Type Field Description java.nio.ByteBuffer
buffer
long
connection
short
length
short
type
-
Constructor Summary
Constructors Constructor Description ZomboidNetData()
ZomboidNetData(int size)
-
Method Summary
Modifier and Type Method Description boolean
isConnect()
boolean
isDisconnect()
void
read(short id, java.nio.ByteBuffer bb, UdpConnection connection)
void
reset()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
type
public short type -
length
public short length -
buffer
public java.nio.ByteBuffer buffer -
connection
public long connection
-
-
Constructor Details
-
ZomboidNetData
public ZomboidNetData() -
ZomboidNetData
public ZomboidNetData(int size)
-
-
Method Details
-
reset
public void reset() -
read
-
isConnect
public boolean isConnect()- Specified by:
isConnect
in interfaceIZomboidPacket
-
isDisconnect
public boolean isDisconnect()- Specified by:
isDisconnect
in interfaceIZomboidPacket
-