Class RawConnectionPacket
java.lang.Object
dev.forbit.server.abstracts.Packet
dev.forbit.server.networks.raw.packets.RawConnectionPacket
- All Implemented Interfaces:
PacketInterface
,ConnectionPacket
Sent to the client upon successful connection to the TCP Server
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillBuffer(GMLOutputBuffer buffer)
Fill the buffer with information you want to send to the clientvoid
loadBuffer(GMLInputBuffer buffer)
Load information from the input buffer into the class to usevoid
Method 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, wait
Methods inherited from interface dev.forbit.server.interfaces.packets.ConnectionPacket
setUUID
Methods inherited from interface dev.forbit.server.interfaces.PacketInterface
getBuffer, getServer
-
Constructor Details
-
RawConnectionPacket
public RawConnectionPacket()
-
-
Method Details
-
fillBuffer
Description copied from class:Packet
Fill the buffer with information you want to send to the client- Specified by:
fillBuffer
in classPacket
- Parameters:
buffer
- the buffer with the header already included.
-
loadBuffer
Description copied from class:Packet
Load information from the input buffer into the class to use- Specified by:
loadBuffer
in classPacket
- Parameters:
buffer
- the input (header is already read.)
-
receive
Description copied from interface:PacketInterface
Method called when the packet is received by the server and information is loaded- Specified by:
receive
in interfacePacketInterface
- Parameters:
client
- the client that sent the packet
-