Class LegacyApiWrapper

java.lang.Object
org.geysermc.floodgate.core.api.legacy.LegacyApiWrapper
All Implemented Interfaces:
org.geysermc.floodgate.api.FloodgateApi

@Singleton public final class LegacyApiWrapper extends Object implements org.geysermc.floodgate.api.FloodgateApi
  • Constructor Details

    • LegacyApiWrapper

      public LegacyApiWrapper()
  • Method Details

    • getPlayerPrefix

      public String getPlayerPrefix()
      Specified by:
      getPlayerPrefix in interface org.geysermc.floodgate.api.FloodgateApi
    • getPlayers

      public Collection<org.geysermc.floodgate.api.player.FloodgatePlayer> getPlayers()
      Specified by:
      getPlayers in interface org.geysermc.floodgate.api.FloodgateApi
    • getPlayerCount

      public int getPlayerCount()
      Specified by:
      getPlayerCount in interface org.geysermc.floodgate.api.FloodgateApi
    • isFloodgatePlayer

      public boolean isFloodgatePlayer(UUID uuid)
      Specified by:
      isFloodgatePlayer in interface org.geysermc.floodgate.api.FloodgateApi
    • getPlayer

      public org.geysermc.floodgate.api.player.FloodgatePlayer getPlayer(UUID uuid)
      Specified by:
      getPlayer in interface org.geysermc.floodgate.api.FloodgateApi
    • createJavaPlayerId

      public UUID createJavaPlayerId(long xuid)
      Specified by:
      createJavaPlayerId in interface org.geysermc.floodgate.api.FloodgateApi
    • isFloodgateId

      public boolean isFloodgateId(UUID uuid)
      Specified by:
      isFloodgateId in interface org.geysermc.floodgate.api.FloodgateApi
    • sendForm

      public boolean sendForm(UUID uuid, org.geysermc.cumulus.form.Form form)
      Specified by:
      sendForm in interface org.geysermc.floodgate.api.FloodgateApi
    • sendForm

      public boolean sendForm(UUID uuid, org.geysermc.cumulus.form.util.FormBuilder<?,?,?> formBuilder)
      Specified by:
      sendForm in interface org.geysermc.floodgate.api.FloodgateApi
    • transferPlayer

      public boolean transferPlayer(UUID uuid, String address, int port)
      Specified by:
      transferPlayer in interface org.geysermc.floodgate.api.FloodgateApi
    • getXuidFor

      public CompletableFuture<Long> getXuidFor(String gamertag)
      Specified by:
      getXuidFor in interface org.geysermc.floodgate.api.FloodgateApi
    • getGamertagFor

      public CompletableFuture<String> getGamertagFor(long xuid)
      Specified by:
      getGamertagFor in interface org.geysermc.floodgate.api.FloodgateApi
    • unsafe

      public org.geysermc.floodgate.api.unsafe.Unsafe unsafe()
      Specified by:
      unsafe in interface org.geysermc.floodgate.api.FloodgateApi