public class BankAccountProxy
extends java.lang.Object
Constructor and Description |
---|
BankAccountProxy() |
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<? extends BankAccount> |
getBankAccount(net.minecraft.entity.player.ServerPlayerEntity player)
Attempts to get the bank account for the given
ServerPlayerEntity |
static 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 |
static BankAccount |
getBankAccountUnsafe(net.minecraft.entity.player.ServerPlayerEntity player)
Unsafe method of getting the player's bank account
Will return null if not found
|
static BankAccount |
getBankAccountUnsafe(java.util.UUID uuid)
Unsafe method of getting the player's (
UUID ) bank account
Will return null if not found |
static boolean |
hasImplementation()
Checks if an account manager has already been assigned
|
static void |
setAccountManager(BankAccountManager accountManager)
Sets the implementation of the account manager
|
public static boolean hasImplementation()
public static void setAccountManager(BankAccountManager accountManager)
accountManager
- The new account manager implementation@Nullable public static BankAccount getBankAccountUnsafe(java.util.UUID uuid)
UUID
) bank account
Will return null if not founduuid
- The UUID of the owner of the account@Nullable public static BankAccount getBankAccountUnsafe(net.minecraft.entity.player.ServerPlayerEntity player)
player
- The owner of the accountpublic static java.util.Optional<? extends BankAccount> getBankAccount(java.util.UUID uuid)
UUID
, presumably a player's UUID
uuid
- The owner of the accountpublic static java.util.Optional<? extends BankAccount> getBankAccount(net.minecraft.entity.player.ServerPlayerEntity player)
ServerPlayerEntity
player
- The owner of the account