mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 15:23:06 +00:00
* disable blood frame recipe * Nuking the Blood Frame * bs+sa --------- Co-authored-by: Alastors <[email protected]>
27 lines
885 B
Java
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;
|
|
}
|
|
}
|