Package app.qwertz.luxxit.packet
Klasse LuxPacket
java.lang.Object
app.qwertz.luxxit.packet.LuxPacket
- Bekannte direkte Unterklassen:
ChatPacket,CInfoPacket,ClientCommandPacket,ExplosionPacket,GameTurnPacket,GivePlayerCardPacket,GuestOnlyPacket,HeartEmotePacket,IdPacket,IdTwoPacket,InfoPacket,KillPacket,LuxConnectPacket,OptionsPacket,PlayerListPacket,QuoteEmotePacket,RemoteVersionPacket,ReverseBlueEmotePacket,SelectCountryPacket,SetCountryArmiesPacket,SetCountryOwnerPacket,SetGamePhasePacket,SetGameRoundPacket,SingEmotePacket,StarInfoPacket,UnknownPacket,UserKeyPacket,UserListEndPacket,UserListStartPacket
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract StringReturns the string representation of the packet data (excluding prefix)static LuxPacketfromString(String input) Factory method to parse a raw string into the correct LuxPacket subclassabstract StringReturns the string prefix identifying this packet type, e.g.protected abstract voidReturns the full stringified packet (prefix + data)
-
Konstruktordetails
-
LuxPacket
public LuxPacket()
-
-
Methodendetails
-
getPrefix
Returns the string prefix identifying this packet type, e.g. "chat: " -
formatData
Returns the string representation of the packet data (excluding prefix) -
stringify
Returns the full stringified packet (prefix + data) -
fromString
Factory method to parse a raw string into the correct LuxPacket subclass -
parseData
-