Package zombie.network.packets.hit
Class NetObject
java.lang.Object
zombie.network.packets.hit.NetObject
- All Implemented Interfaces:
INetworkPacket
public class NetObject extends java.lang.Object implements INetworkPacket
-
Field Summary
Fields Modifier and Type Field Description byte
objectTypeNone
byte
objectTypeObject
-
Constructor Summary
Constructors Constructor Description NetObject()
-
Method Summary
Modifier and Type Method Description java.lang.String
getDescription()
IsoObject
getObject()
int
getPacketSizeBytes()
void
parse(java.nio.ByteBuffer byteBuffer)
void
setObject(IsoObject object)
void
write(ByteBufferWriter byteBufferWriter)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.network.packets.INetworkPacket
isConsistent
-
Field Details
-
objectTypeNone
public final byte objectTypeNone- See Also:
- Constant Field Values
-
objectTypeObject
public final byte objectTypeObject- See Also:
- Constant Field Values
-
-
Constructor Details
-
NetObject
public NetObject()
-
-
Method Details
-
setObject
-
getObject
-
parse
public void parse(java.nio.ByteBuffer byteBuffer)- Specified by:
parse
in interfaceINetworkPacket
-
write
- Specified by:
write
in interfaceINetworkPacket
-
getPacketSizeBytes
public int getPacketSizeBytes()- Specified by:
getPacketSizeBytes
in interfaceINetworkPacket
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescription
in interfaceINetworkPacket
-