Interface BankAccountManager
- All Known Implementing Classes:
PixelmonStorageManager
public interface BankAccountManager
Interface responsible for getting a bank account for a particular ServerPlayerEntity or UUID.
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<? extends BankAccount>getBankAccount(UUID uuid) default CompletableFuture<? extends BankAccount>getBankAccount(net.minecraft.server.level.ServerPlayer player) Attempts to get the bank account for the givenServerPlayerdefault BankAccountgetBankAccountNow(UUID uuid) Unsafe method of getting the player's (UUID) bank account Will return null if not founddefault BankAccountgetBankAccountNow(net.minecraft.server.level.ServerPlayer player) Unsafe method of getting the player's bank account Will return null if not found
-
Method Details
-
getBankAccountNow
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
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
- 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 givenServerPlayer- Parameters:
player- The owner of the account- Returns:
- The future bank account
-