Interface BankAccountManager

All Known Implementing Classes:
PixelmonStorageManager

public interface BankAccountManager
Interface responsible for getting a bank account for a particular ServerPlayerEntity or UUID.
  • Method Details

    • getBankAccountNow

      @Nullable default BankAccount getBankAccountNow(UUID uuid)
      Unsafe method of getting the player's (UUID) bank account Will return null if not found
      Parameters:
      uuid - The UUID of the owner of the account
      Returns:
      The bank account found
    • getBankAccountNow

      @Nullable default BankAccount getBankAccountNow(net.minecraft.server.level.ServerPlayer player)
      Unsafe method of getting the player's bank account Will return null if not found
      Parameters:
      player - The owner of the account
      Returns:
      The bank account found
    • getBankAccount

      CompletableFuture<? extends BankAccount> getBankAccount(UUID uuid)
      Attempts to get the bank account for the given UUID, presumably a player's UUID
      Parameters:
      uuid - The owner of the account
      Returns:
      The future bank account
    • getBankAccount

      default CompletableFuture<? extends BankAccount> getBankAccount(net.minecraft.server.level.ServerPlayer player)
      Attempts to get the bank account for the given ServerPlayer
      Parameters:
      player - The owner of the account
      Returns:
      The future bank account