Class BankingGUI

java.lang.Object
nl.minetopiasdb.api.banking.BankingGUI

public class BankingGUI extends Object
Class responsible for banking GUI
  • Constructor Details

    • BankingGUI

      public BankingGUI()
  • Method Details

    • getInstance

      public static BankingGUI 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 bankaccount
      target - owner of bankaccount
      type - bankaccounttype
      id - Id of bankaccount (value is ignored when type is BankAccountType.PERSONAL
    • createItem

      public org.bukkit.inventory.ItemStack createItem(org.bukkit.entity.Player player, String path)
      Create ATM item for given player and path
      Parameters:
      player - player
      path - 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 - player
      path - path (without 'Item') e.g. 'Ghast' or 'Redstone'
      Returns:
      itemstack
    • getValue

      public double getValue(String path)
      Get money value for given path
      Parameters:
      path - path (without 'Value') e.g. 'Ghast' or 'Redstone'
      Returns:
      value of this item