🎉 Add Network Packets
Dieser Commit ist enthalten in:
Ursprung
4c79af0182
Commit
186592f0ec
@ -1,36 +0,0 @@
|
|||||||
/*
|
|
||||||
* This file is a part of the SteamWar software.
|
|
||||||
*
|
|
||||||
* Copyright (C) 2022 SteamWar.de-Serverteam
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package de.steamwar.network.packets.client;
|
|
||||||
|
|
||||||
import de.steamwar.network.packets.server.ServerNetworkHandler;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class TablistNamePacket extends ClientPacket {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = -1709089784235478752L;
|
|
||||||
private int player;
|
|
||||||
private String tablistName;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void handle(ServerNetworkHandler handler) {
|
|
||||||
handler.handle(this);
|
|
||||||
}
|
|
||||||
}
|
|
@ -20,7 +20,9 @@
|
|||||||
package de.steamwar.network.packets.server;
|
package de.steamwar.network.packets.server;
|
||||||
|
|
||||||
import de.steamwar.network.packets.client.ClientNetworkHandler;
|
import de.steamwar.network.packets.client.ClientNetworkHandler;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
public class PingPacket extends ServerPacket {
|
public class PingPacket extends ServerPacket {
|
||||||
private static final long serialVersionUID = 714647343959550378L;
|
private static final long serialVersionUID = 714647343959550378L;
|
||||||
private int id;
|
private int id;
|
||||||
|
@ -27,5 +27,4 @@ public abstract class ServerNetworkHandler extends NetworkHandler {
|
|||||||
public void handle(ImALobbyPacket packet) {}
|
public void handle(ImALobbyPacket packet) {}
|
||||||
public void handle(InventoryCallbackPacket packet) {}
|
public void handle(InventoryCallbackPacket packet) {}
|
||||||
public void handle(PrepareSchemPacket packet) {}
|
public void handle(PrepareSchemPacket packet) {}
|
||||||
public void handle(TablistNamePacket packet) {}
|
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren