use of WayofTime.alchemicalWizardry.api.alchemy.energy.IAlchemyGoggles in project BloodMagic by WayofTime.
the class SpellHelper method canPlayerSeeAlchemy.
public static boolean canPlayerSeeAlchemy(EntityPlayer player) {
if (player != null) {
ItemStack stack = player.getCurrentArmor(3);
if (stack != null) {
Item item = stack.getItem();
if (item instanceof IAlchemyGoggles && ((IAlchemyGoggles) item).showIngameHUD(player.worldObj, stack, player)) {
return true;
}
}
ItemStack heldStack = player.getHeldItem();
if (heldStack != null && heldStack.getItem() instanceof IReagentManipulator) {
return true;
}
}
return false;
}
Aggregations