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

29 lines
736 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) {
2020-02-29 01:44:37 +01:00
//Netherrite Ore (Kind of)
if(data.getKey().getKey().equalsIgnoreCase("ancient_debris"))
return true;
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);
}
}
}