Class BankingGUI

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.inventory.ItemStack
    createItem(org.bukkit.entity.Player player, int identifier)
    Create ATM item for given player and path
    org.bukkit.inventory.ItemStack
    createWithdrawedItem(org.bukkit.entity.Player player, int identifier)
    Create the item you would receive when withdrawing money
    org.bukkit.inventory.ItemStack
    createWithdrawedItem(org.bukkit.entity.Player player, int identifier, int amount)
    Create the item you would receive when withdrawing money
    static BankingGUI
    Get an instance of BankingGUI
    double
    getValue(int identifier)
    Get money value for given path
    void
    open(org.bukkit.entity.Player player, org.bukkit.OfflinePlayer target, BankAccountType type, int id)
    Open the bank account for provided player

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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, int identifier)
      Create ATM item for given player and path
      Parameters:
      player - player
      identifier - 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 - player
      identifier - 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 - player
      identifier - 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