use of am2.api.spell.enums.Affinity in project ArsMagica2 by Mithion.
the class ItemFlickerJar method getColorFromItemStack.
@Override
public int getColorFromItemStack(ItemStack stack, int pass) {
if (stack.getItemDamage() > 0 && pass == 0) {
int meta = stack.getItemDamage();
Affinity aff = Affinity.values()[meta];
return aff.color;
} else {
return 0xFFFFFF;
}
}
Aggregations