package com.gmail.nossr50.skills.mining; import org.bukkit.Material; import com.gmail.nossr50.config.AdvancedConfig; import com.gmail.nossr50.config.Config; public class BlastMining { // The order of the values is extremely important, a few methods depend on it to work properly public enum Tier { EIGHT(8), SEVEN(7), SIX(6), FIVE(5), FOUR(4), THREE(3), TWO(2), ONE(1); int numerical; private Tier(int numerical) { this.numerical = numerical; } public int toNumerical() { return numerical; } protected int getLevel() { return AdvancedConfig.getInstance().getBlastMiningRankLevel(this); } protected double getBlastRadiusModifier() { return AdvancedConfig.getInstance().getBlastRadiusModifier(this); } protected double getOreBonus() { return AdvancedConfig.getInstance().getOreBonus(this); } protected double getDebrisReduction() { return AdvancedConfig.getInstance().getDebrisReduction(this); } protected double getBlastDamageDecrease() { return AdvancedConfig.getInstance().getBlastDamageDecrease(this); } protected int getDropMultiplier() { return AdvancedConfig.getInstance().getDropMultiplier(this); } } public static Material detonator = Config.getInstance().getDetonatorItem(); public final static int MAXIMUM_REMOTE_DETONATION_DISTANCE = 100; }