// validate
if (!blocks.matches(getMaterial())) return;
if (!blocks.matches("dispenser")) return;
// detect intentions
Power pow = isActive(blocks);
boolean inf = "inf".equalsIgnoreCase(blocks.getSign().getLine(2));
if(inf) {
CartType type = CartType.fromString(blocks.getSign().getLine(0));