Package nl.minetopiasdb.api.banking
Class PinConsoleManager.PinProgressObject
java.lang.Object
nl.minetopiasdb.api.banking.PinConsoleManager.PinProgressObject
- Enclosing class:
- PinConsoleManager
Pin progress object
-
Constructor Summary
ConstructorDescriptionPinProgressObject
(UUID uuid, org.bukkit.Location consoleLocation, double amount, PinConsoleManager.PinProgress progress, int bankAccountId) -
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the amount that needs to be paidint
Get the bankaccount idorg.bukkit.Location
Get the block location of the pinconsoelGet the progress of this pin transactionGet the UUID of the player that needs to pay this pin actionvoid
setBankAccountId
(int bankAccountId) Change the bankaccount idvoid
setLocation
(org.bukkit.Location consoleLocation) Change the console locationvoid
setProgress
(PinConsoleManager.PinProgress progress) Change the pin progress
-
Constructor Details
-
PinProgressObject
public PinProgressObject(UUID uuid, org.bukkit.Location consoleLocation, double amount, PinConsoleManager.PinProgress progress, int bankAccountId)
-
-
Method Details
-
getTargetUUID
Get the UUID of the player that needs to pay this pin action- Returns:
- UUID of player that needs to pay the pin action
-
setLocation
public void setLocation(org.bukkit.Location consoleLocation) Change the console location- Parameters:
consoleLocation
- new console location
-
getConsoleLocation
public org.bukkit.Location getConsoleLocation()Get the block location of the pinconsoel- Returns:
- location
-
getAmount
public double getAmount()Get the amount that needs to be paid- Returns:
- amount that needs to be paid
-
setProgress
Change the pin progress- Parameters:
progress
- new pin progresss
-
getProgress
Get the progress of this pin transaction- Returns:
- pin progress
-
setBankAccountId
public void setBankAccountId(int bankAccountId) Change the bankaccount id- Parameters:
bankAccountId
- new bankaccount id
-
getBankAccountId
public int getBankAccountId()Get the bankaccount id- Returns:
- bankaccount id
-