public interface Packet
Network
instead.Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
data()
The payload of the packet.
|
java.lang.String |
destination()
The address of the destination of the packet.
|
Packet |
hop()
Generates a copy of the packet, with a reduced time to live.
|
int |
port()
The port this packet is being sent to.
|
void |
save(net.minecraft.nbt.NBTTagCompound nbt)
Saves the packet's data to the specified compound tag.
|
int |
size()
The size of the packet's payload.
|
java.lang.String |
source()
The address of the original sender of this packet.
|
int |
ttl()
The remaining 'time to live' for this packet.
|
java.lang.String source()
java.lang.String destination()
int port()
java.lang.Object[] data()
int size()
int ttl()
Packet hop()
void save(net.minecraft.nbt.NBTTagCompound nbt)
Network
class.