-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
74 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/main/java/de/virtualplayground/bank/currency/Currency.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package de.virtualplayground.bank.currency; | ||
|
||
import org.bukkit.Material; | ||
|
||
public class Currency { | ||
|
||
public enum Item { | ||
|
||
FIVE(5, Material.IRON_BLOCK), | ||
TEN(10, Material.GOLD_BLOCK), | ||
HUNDRED(100, Material.EMERALD_BLOCK), | ||
THOUSAND(1000, Material.DIAMOND_BLOCK), | ||
TEN_THOUSAND(10000, Material.NETHERITE_BLOCK); | ||
|
||
final int value; | ||
final Material type; | ||
|
||
private Item(int v, Material t) { | ||
value = v; | ||
type = t; | ||
} | ||
|
||
public int getValue() { | ||
return value; | ||
} | ||
|
||
public Material getType() { | ||
return type; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters