mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-05 18:32:28 +01:00
Packets are value based
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
abf15e433c
commit
8f8ee4f7d2
@ -4,6 +4,8 @@ import net.minestom.server.utils.binary.Writeable;
|
||||
|
||||
/**
|
||||
* Represents a packet received from a client.
|
||||
* <p>
|
||||
* Packets are value-based, and should therefore be reliant on identity.
|
||||
*/
|
||||
public interface ClientPacket extends Writeable {
|
||||
}
|
||||
|
@ -5,6 +5,8 @@ import net.minestom.server.utils.binary.Writeable;
|
||||
|
||||
/**
|
||||
* Represents a packet which can be sent to a player using {@link PlayerConnection#sendPacket(SendablePacket)}.
|
||||
* <p>
|
||||
* Packets are value-based, and should therefore be reliant on identity.
|
||||
*/
|
||||
public non-sealed interface ServerPacket extends Writeable, SendablePacket {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user