mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Improvements on enum collections
Former-commit-id: 638cfb5083176b2d2b6870fe42b209b5ef28880c
This commit is contained in:
1 parent
cdff3a5de2
commit
2b93acb406
1 file changed
+5
-3
@@ -4,6 +4,8 @@ import java.lang.reflect.Method;
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.AbstractMap.SimpleEntry;
|
||||
import java.util.ArrayList;
|
||||
import java.util.EnumMap;
|
||||
import java.util.EnumSet;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
@@ -47,9 +49,9 @@ import net.md_5.bungee.api.chat.TextComponent;
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class Util {
|
||||
private static HashSet<Material> blacklist = new HashSet<Material>();
|
||||
private static HashSet<Material> shoppables = new HashSet<Material>();
|
||||
private static Map<Material, Entry<Double,Double>> restrictedPrices = new HashMap<Material, Entry<Double,Double>>();
|
||||
private static final EnumSet<Material> blacklist = EnumSet.noneOf(Material.class);
|
||||
private static final EnumSet<Material> shoppables = EnumSet.noneOf(Material.class);
|
||||
private static final EnumMap<Material, Entry<Double,Double>> restrictedPrices = new EnumMap<Material, Entry<Double,Double>>(Material.class);
|
||||
private static QuickShop plugin;
|
||||
private static Method storageContents;
|
||||
|
||||
|
||||
Reference in new issue
Block a user