mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2025-07-19 15:22:30 +02:00
35 lines
1.1 KiB
Java
35 lines
1.1 KiB
Java
/*
|
|
* Copyright (C) 2020 Nan1t
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU 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 General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
package ru.nanit.limbo.protocol;
|
|
|
|
import ru.nanit.limbo.connection.ClientConnection;
|
|
import ru.nanit.limbo.protocol.registry.Version;
|
|
import ru.nanit.limbo.server.LimboServer;
|
|
|
|
public interface Packet {
|
|
|
|
void encode(ByteMessage msg, Version version);
|
|
|
|
void decode(ByteMessage msg, Version version);
|
|
|
|
default void handle(ClientConnection conn, LimboServer server) {
|
|
// Ignored by default
|
|
}
|
|
|
|
}
|