![JAR search and dependency download from the Maven repository](/logo.png)
net.minestom.server.network.packet.client.ClientPacket 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.client;
import net.minestom.server.network.NetworkBuffer;
import org.jetbrains.annotations.ApiStatus;
/**
* Represents a packet received from a client.
*
* Packets are value-based, and should therefore not be reliant on identity.
*/
public interface ClientPacket extends NetworkBuffer.Writer {
/**
* Determines whether this packet should be processed immediately
* or wait until the next server tick.
* @return true if this packet should process immediately
*/
@ApiStatus.Internal
default boolean processImmediately() {
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy