Files
BloodMagic/src/main/java/WayofTime/alchemicalWizardry/common/bloodAltarUpgrade/CompatChecks.java
T
chochemandAlastors 748552a3a5 Remove blood frame from BM (reinvented in magic bees) (#45)
* disable blood frame recipe

* Nuking the Blood Frame

* bs+sa

---------

Co-authored-by: Alastors <[email protected]>
2023-04-28 19:29:25 +02:00

27 lines
885 B
Java

package WayofTime.alchemicalWizardry.common.bloodAltarUpgrade;
import com.cricketcraft.chisel.api.carving.CarvingUtils;
import com.cricketcraft.chisel.api.carving.ICarvingGroup;
import com.google.common.base.Strings;
import WayofTime.alchemicalWizardry.api.BlockStack;
public class CompatChecks {
public static boolean checkChiselBlock(BlockStack blockStack, String groupName) {
if (blockStack.getBlock() == null) return false;
ICarvingGroup group = CarvingUtils.getChiselRegistry().getGroup(blockStack.getBlock(), blockStack.getMeta());
if (group != null) {
String check = CarvingUtils.getChiselRegistry().getGroup(blockStack.getBlock(), blockStack.getMeta())
.getName();
if (Strings.isNullOrEmpty(check)) return false;
return check.equals(groupName);
}
return false;
}
}