Class GameProtocol

java.lang.Object
org.geysermc.geyser.network.GameProtocol

public final class GameProtocol extends Object
Contains information about the supported protocols in Geyser.
  • Field Details

    • SUPPORTED_BEDROCK_PROTOCOLS

      public static final it.unimi.dsi.fastutil.ints.IntList SUPPORTED_BEDROCK_PROTOCOLS
      All bedrock protocol versions that Geyser supports
    • SUPPORTED_BEDROCK_VERSIONS

      public static final List<org.geysermc.geyser.api.util.MinecraftVersion> SUPPORTED_BEDROCK_VERSIONS
      All bedrock minecraft versions that Geyser supports. There may be multiple MinecraftVersions with the same protocol version.
    • DEFAULT_BEDROCK_PROTOCOL

      public static final int DEFAULT_BEDROCK_PROTOCOL
      The latest Bedrock protocol version that Geyser supports.
    • DEFAULT_BEDROCK_VERSION

      public static final String DEFAULT_BEDROCK_VERSION
      The latest Bedrock Minecraft version that Geyser supports.
  • Method Details

    • getBedrockCodec

      public static @Nullable org.cloudburstmc.protocol.bedrock.codec.BedrockCodec getBedrockCodec(int protocolVersion)
      Gets the BedrockPacketCodec of the given protocol version.
      Parameters:
      protocolVersion - The protocol version to attempt to find
      Returns:
      The packet codec, or null if the client's protocol is unsupported
    • is26_10orHigher

      public static boolean is26_10orHigher(int protocolVersion)
    • is26_20orHigher

      public static boolean is26_20orHigher(int protocolVersion)
    • getJavaVersions

      public static List<String> getJavaVersions()
      Gets the supported Minecraft: Java Edition version names.
      Returns:
      the supported Minecraft: Java Edition version names
    • getJavaProtocolVersion

      public static int getJavaProtocolVersion()
      Gets the supported Minecraft: Java Edition protocol version.
      Returns:
      the supported Minecraft: Java Edition protocol version
    • getJavaMinecraftVersion

      public static String getJavaMinecraftVersion()
      Gets the supported Minecraft: Java Edition version.
      Returns:
      the supported Minecraft: Java Edition version
    • getAllSupportedBedrockVersions

      public static String getAllSupportedBedrockVersions()
      Returns:
      a string showing all supported Bedrock versions for this Geyser instance
    • getAllSupportedJavaVersions

      public static String getAllSupportedJavaVersions()
      Returns:
      a string showing all supported Java versions for this Geyser instance