All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.network.packet.server.ServerPacket Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
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 { } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy