mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-04-04 10:46:23 +02:00
27 lines
633 B
Java
27 lines
633 B
Java
package com.gmail.nossr50.util;
|
|
|
|
import org.bukkit.Material;
|
|
|
|
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 false;
|
|
/*default:
|
|
return mcMMO.getModManager().isCustomOre(data);*/
|
|
}
|
|
}
|
|
}
|