public void readFromNBT(NBTTagCompound data) {
super.readFromNBT(data);
stateController.readFromNBT(data, "state");
SafeNBTWrapper safe = new SafeNBTWrapper(data);
pipeLenght = safe.getFloat("pipeLenght");
// Legacy code
boolean waitIfEmpty = data.getBoolean("WaitIfEmpty");
boolean waitTillFull = data.getBoolean("WaitTillFull");
if (waitTillFull) {