Package foundry.veil.api.network.handler
Interface ServerPacketContext
- All Superinterfaces:
PacketContext
Context for server-side packet handling.
-
Method Summary
Methods inherited from interface foundry.veil.api.network.handler.PacketContext
createPacket, disconnect, level, sendPacket, sendPacket, sendPacket, sendPacket
-
Method Details
-
server
default net.minecraft.server.MinecraftServer server()- Returns:
- The Minecraft server instance
-
player
@NotNull @NotNull net.minecraft.server.level.ServerPlayer player()- Specified by:
player
in interfacePacketContext
- Returns:
- The player that received the payload
-