Class BankingGUI
java.lang.Object
nl.minetopiasdb.api.banking.BankingGUI
Class responsible for banking GUI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStackcreateItem(org.bukkit.entity.Player player, int identifier) Create ATM item for given player and pathorg.bukkit.inventory.ItemStackcreateWithdrawedItem(org.bukkit.entity.Player player, int identifier) Create the item you would receive when withdrawing moneyorg.bukkit.inventory.ItemStackcreateWithdrawedItem(org.bukkit.entity.Player player, int identifier, int amount) Create the item you would receive when withdrawing moneystatic BankingGUIGet an instance of BankingGUIdoublegetValue(int identifier) Get money value for given pathvoidopen(org.bukkit.entity.Player player, org.bukkit.OfflinePlayer target, BankAccountType type, int id) Open the bank account for provided player
-
Constructor Details
-
BankingGUI
public BankingGUI()
-
-
Method Details
-
getInstance
Get an instance of BankingGUI- Returns:
- instance of bankinggui
-
open
public void open(org.bukkit.entity.Player player, org.bukkit.OfflinePlayer target, BankAccountType type, int id) Open the bank account for provided player- Parameters:
player- player that needs to see the bankaccounttarget- owner of bankaccounttype- bankaccounttypeid- ID of bankaccount (value is ignored when type isBankAccountType.PERSONAL
-
createItem
public org.bukkit.inventory.ItemStack createItem(org.bukkit.entity.Player player, int identifier) Create ATM item for given player and path- Parameters:
player- playeridentifier- identifier of ATMItem in ATMItems array (number between 0 and 8)- Returns:
- ATM item
-
createWithdrawedItem
public org.bukkit.inventory.ItemStack createWithdrawedItem(org.bukkit.entity.Player player, int identifier) Create the item you would receive when withdrawing money- Parameters:
player- playeridentifier- identifier of ATMItem in ATMItems array (number between 0 and 8)- Returns:
- itemstack
-
createWithdrawedItem
public org.bukkit.inventory.ItemStack createWithdrawedItem(org.bukkit.entity.Player player, int identifier, int amount) Create the item you would receive when withdrawing money- Parameters:
player- playeridentifier- identifier of ATMItem in ATMItems array (number between 0 and 8)amount- amount of items- Returns:
- itemstack
-
getValue
public double getValue(int identifier) Get money value for given path- Parameters:
identifier- identifier of ATMItem in ATMItems array (number between 0 and 8)- Returns:
- value of this item
-