Packets are value based

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-11-30 19:15:16 +01:00
parent abf15e433c
commit 8f8ee4f7d2
2 changed files with 4 additions and 0 deletions

View File

@ -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 {
}

View File

@ -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 {