Package nl.minetopiasdb.api.banking
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, String path) Create ATM item for given player and pathorg.bukkit.inventory.ItemStackcreateWithdrawedItem(org.bukkit.entity.Player player, String path) Create the item you would receive when withdrawing moneystatic BankingGUIGet an instance of BankingGUIdoubleGet 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
Create ATM item for given player and path- Parameters:
player- playerpath- path (without 'Item') e.g. 'Ghast' or 'Redstone'- Returns:
- ATM item
-
createWithdrawedItem
public org.bukkit.inventory.ItemStack createWithdrawedItem(org.bukkit.entity.Player player, String path) Create the item you would receive when withdrawing money- Parameters:
player- playerpath- path (without 'Item') e.g. 'Ghast' or 'Redstone'- Returns:
- itemstack
-
getValue
Get money value for given path- Parameters:
path- path (without 'Value') e.g. 'Ghast' or 'Redstone'- Returns:
- value of this item
-