public static float getListPower(List<SiegeableData> list, Material testmat) { for (SiegeableData loopdata : list) { if (loopdata.doesMatch(testmat)) loopdata.getRequiredBlastPower(); } return -1; }