Class NFTPlayer

java.lang.Object
com.nftworlds.wallet.objects.NFTPlayer

public class NFTPlayer extends Object
  • Constructor Details

    • NFTPlayer

      public NFTPlayer(UUID uuid)
  • Method Details

    • getWallets

      public List<Wallet> getWallets()
      Get a player's wallet(s)
      Returns:
      player's wallet(s)
    • getPrimaryWallet

      public Wallet getPrimaryWallet()
      Get a player's primary wallet
      Returns:
      player's wallet
    • requestWRLD

      public <T> void requestWRLD(double amount, Network network, String reason, T payload)
      Send a request for a WRLD transaction to a player
      Parameters:
      amount -
      network -
      reason -
    • sendWRLD

      public void sendWRLD(double amount, Network network, String reason)
      Send WRLD to a player's primary wallet
      Parameters:
      amount -
      network -
      reason -
    • createPlayerPayment

      public void createPlayerPayment(NFTPlayer to, double amount, Network network, String reason)
      Create a peer to peer player payment link
      Parameters:
      to -
      amount -
      network -
      reason -
    • isLinked

      public boolean isLinked()
      Check if player has their wallet linked
      Returns:
      if player has wallet linked
    • remove

      public static void remove(UUID uuid)
    • getByUUID

      public static NFTPlayer getByUUID(UUID uuid)