Idk if it matters too much, but this should probably be this.setFlowDelay(1500).setResistance(flowing ? 0.0F : 500F);
(Same for Water.java)