use of WayofTime.alchemicalWizardry.api.items.interfaces.ArmourUpgrade in project BloodMagic by WayofTime.
the class BoundArmour method hasIGoggles.
@Optional.Method(modid = "Thaumcraft")
public boolean hasIGoggles(ItemStack itemStack) {
ItemStack[] inv = getInternalInventory(itemStack);
if (inv == null) {
return false;
}
int blood = getMaxBloodShardLevel(itemStack);
for (ItemStack item : inv) {
if (item == null) {
continue;
}
if (item.getItem() instanceof ArmourUpgrade && blood > 0) {
if (item.getItem() instanceof IGoggles) {
return true;
}
if (((ArmourUpgrade) item.getItem()).isUpgrade()) {
blood--;
}
}
}
return false;
}
Aggregations