Interface ServerPacketContext

All Superinterfaces:
PacketContext

public interface ServerPacketContext extends PacketContext
Context for server-side packet handling.
  • 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 interface PacketContext
      Returns:
      The player that received the payload