public interface BankAccountManager
| Modifier and Type | Method and Description |
|---|---|
default java.util.Optional<? extends BankAccount> |
getBankAccount(net.minecraft.entity.player.ServerPlayerEntity player)
Attempts to get the bank account for the given
ServerPlayerEntity |
java.util.Optional<? extends BankAccount> |
getBankAccount(java.util.UUID uuid)
Attempts to get the bank account for the given
UUID, presumably a player's UUID |
default BankAccount |
getBankAccountUnsafe(net.minecraft.entity.player.ServerPlayerEntity player)
Unsafe method of getting the player's bank account
Will return null if not found
|
default BankAccount |
getBankAccountUnsafe(java.util.UUID uuid)
Unsafe method of getting the player's (
UUID) bank account
Will return null if not found |
@Nullable default BankAccount getBankAccountUnsafe(java.util.UUID uuid)
UUID) bank account
Will return null if not founduuid - The UUID of the owner of the account@Nullable default BankAccount getBankAccountUnsafe(net.minecraft.entity.player.ServerPlayerEntity player)
player - The owner of the accountjava.util.Optional<? extends BankAccount> getBankAccount(java.util.UUID uuid)
UUID, presumably a player's UUIDuuid - The owner of the accountdefault java.util.Optional<? extends BankAccount> getBankAccount(net.minecraft.entity.player.ServerPlayerEntity player)
ServerPlayerEntityplayer - The owner of the account