/** Don't forget to override this function in all children if you want more vars! */
 @Override
 public void readFromNBT(NBTTagCompound tag) {
   super.readFromNBT(tag);
   delay = tag.getInteger("delay");
   isPowered = tag.getBoolean("isPowered");
 }
 /** Don't forget to override this function in all children if you want more vars! */
 @Override
 public void writeToNBT(NBTTagCompound tag) {
   super.writeToNBT(tag);
   tag.setInteger("delay", delay);
   tag.setBoolean("isPowered", isPowered);
 }