Class RawPingPacket
java.lang.Object
dev.forbit.server.abstracts.Packet
dev.forbit.server.networks.raw.RawPacket
dev.forbit.server.networks.raw.packets.RawPingPacket
- All Implemented Interfaces:
PacketInterface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfillBuffer(GMLOutputBuffer buffer)Fill the buffer with information you want to send to the clientvoidloadBuffer(GMLInputBuffer buffer)Load information from the input buffer into the class to usevoidMethod called when the packet is received by the server and information is loadedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.forbit.server.interfaces.PacketInterface
getServer
-
Constructor Details
-
RawPingPacket
public RawPingPacket()
-
-
Method Details
-
fillBuffer
Description copied from class:PacketFill the buffer with information you want to send to the client- Specified by:
fillBufferin classPacket- Parameters:
buffer- the buffer with the header already included.
-
loadBuffer
Description copied from class:PacketLoad information from the input buffer into the class to use- Specified by:
loadBufferin classPacket- Parameters:
buffer- the input (header is already read.)
-
receive
Description copied from interface:PacketInterfaceMethod called when the packet is received by the server and information is loaded- Parameters:
client- the client that sent the packet
-