Advertisement
ItzRozzaDev

CustomEconomyCache

May 23rd, 2020
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.52 KB | None | 0 0
  1. package com.itzrozzadev.customeconomy.api;
  2.  
  3. /**
  4.  * Everything Here Will Is Used to Chance the Value
  5.  * of Player's Information Stored in the data.db File
  6.  * <p>
  7.  * Stored Info:
  8.  * -> Balance
  9.  * -> Tokens
  10.  */
  11.  
  12. public interface CustomEconomyCache {
  13.     /**
  14.      * Gets Balance of Specified Player
  15.      *
  16.      * @return Balance of Specified Player
  17.      */
  18.     double getBalance();
  19.  
  20.     /**
  21.      * Gets Tokens of Specified Player
  22.      *
  23.      * @return Tokens of Specified Player
  24.      */
  25.     double getTokens();
  26.  
  27.     /**
  28.      * Sets Players Balance to What Ever You Want
  29.      *
  30.      * @param setBalanceTo Value That the Player's Balance Will be Set to
  31.      */
  32.     void setBalance(final double setBalanceTo);
  33.  
  34.     /**
  35.      * Subtract an Amount from Players Balance
  36.      *
  37.      * @param subtractBy Value That Will be Subtracted From Player's Balance
  38.      */
  39.     void subBalance(final double subtractBy);
  40.  
  41.     /**
  42.      * Add an Amount to Players Balance
  43.      *
  44.      * @param addBy Value That Will be Added to Player's Balance
  45.      */
  46.     void addBalance(final double addBy);
  47.  
  48.     /**
  49.      * Sets Players Tokens to What Ever You Want
  50.      *
  51.      * @param setTokensTo Value That the Player's Tokens Will be Set to
  52.      */
  53.     void setTokens(final double setTokensTo);
  54.  
  55.     /**
  56.      * Subtract an Amount from Players Balance
  57.      *
  58.      * @param subtractBy Value That Will be Subtracted From Player's Tokens
  59.      */
  60.     void subTokens(final double subtractBy);
  61.  
  62.     /**
  63.      * Subtract an Amount from Players Balance
  64.      *
  65.      * @param addBy Value That Will be Added to Player's Tokens
  66.      */
  67.     void addTokens(final double addBy);
  68.  
  69.  
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement