Class BedrockNameResolver.BedrockDetect
java.lang.Object
com.bencodez.advancedcore.api.bedrock.BedrockNameResolver.BedrockDetect
- Enclosing class:
BedrockNameResolver
Bedrock detection using Floodgate and Geyser APIs.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new Bedrock detector with no debug output.BedrockDetect(Consumer<String> debug) Instantiates a new Bedrock detector with debug output. -
Method Summary
Modifier and TypeMethodDescriptiongetFloodgatePlayer(UUID uuid) Get the Floodgate player object.booleanCheck if a player is a Bedrock player by UUID.booleanCheck if Floodgate API is available.booleanCheck if Geyser API is available.voidload()Load Floodgate and Geyser APIs.
-
Constructor Details
-
BedrockDetect
public BedrockDetect()Instantiates a new Bedrock detector with no debug output. -
BedrockDetect
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
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
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
-