mcMMO/src/main/java/com/gmail/nossr50/util/MaterialUtils.java

25 lines
605 B
Java
Raw Normal View History

package com.gmail.nossr50.util;
2014-03-03 18:27:45 +01:00
import com.gmail.nossr50.mcMMO;
import org.bukkit.Material;
2014-03-03 18:27:45 +01:00
public final class MaterialUtils {
private MaterialUtils() {}
protected static boolean isOre(Material data) {
switch (data) {
case COAL_ORE:
case DIAMOND_ORE:
case NETHER_QUARTZ_ORE:
case GOLD_ORE:
case IRON_ORE:
case LAPIS_ORE:
case REDSTONE_ORE:
case EMERALD_ORE:
return true;
default:
return mcMMO.getModManager().isCustomOre(data);
}
}
}