@Override
 public void writeToNBT(NBTTagCompound tags) {
   super.writeToNBT(tags);
   tags.setByte("Direction", direction);
 }
 @Override
 public void readFromNBT(NBTTagCompound tags) {
   super.readFromNBT(tags);
   direction = tags.getByte("Direction");
 }