net.minestom.server.network.packet.server.ServerPacket Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
package net.minestom.server.network.packet.server;
import net.minestom.server.adventure.ComponentHolder;
import net.minestom.server.network.player.PlayerConnection;
/**
* Represents a packet which can be sent to a player using {@link PlayerConnection#sendPacket(SendablePacket)}.
*
* Packets are value-based, and should therefore not be reliant on identity.
*/
public sealed interface ServerPacket extends SendablePacket permits
ServerPacket.Configuration, ServerPacket.Status, ServerPacket.Login, ServerPacket.Play {
non-sealed interface Configuration extends ServerPacket {
}
non-sealed interface Status extends ServerPacket {
}
non-sealed interface Login extends ServerPacket {
}
non-sealed interface Play extends ServerPacket {
}
interface ComponentHolding extends ComponentHolder {
}
}