Class BedrockNameResolver.BedrockDetect

java.lang.Object
com.bencodez.advancedcore.api.bedrock.BedrockNameResolver.BedrockDetect
Enclosing class:
BedrockNameResolver

public static class BedrockNameResolver.BedrockDetect extends Object
Bedrock detection using Floodgate and Geyser APIs.
  • Constructor Details

    • BedrockDetect

      public BedrockDetect()
      Instantiates a new Bedrock detector with no debug output.
    • BedrockDetect

      public BedrockDetect(Consumer<String> debug)
      Instantiates a new Bedrock detector with debug output.
      Parameters:
      debug - the debug consumer
  • Method Details

    • load

      public void load()
      Load Floodgate and Geyser APIs.
    • isBedrock

      public boolean isBedrock(UUID uuid)
      Check if a player is a Bedrock player by UUID.
      Parameters:
      uuid - the player UUID
      Returns:
      true if the player is a Bedrock player
    • getFloodgatePlayer

      public Object getFloodgatePlayer(UUID uuid)
      Get the Floodgate player object.
      Parameters:
      uuid - the player UUID
      Returns:
      the Floodgate player object or null
    • isFloodgateAvailable

      public boolean isFloodgateAvailable()
      Check if Floodgate API is available.
      Returns:
      true if Floodgate is available
    • isGeyserAvailable

      public boolean isGeyserAvailable()
      Check if Geyser API is available.
      Returns:
      true if Geyser is available