@Override
  public void readFromNBT(NBTTagCompound tag) {

    super.readFromNBT(tag);
    this.workingTick = tag.getInteger("workingTick");
    this.coordinates = tag.getIntArray("coordinates");
    this.searchingTick = tag.getByte("searchingTick");
    this.coolDown = tag.getInteger("coolDown");

    if (coordinates.length < 3) {
      coordinates = new int[3];
      coordinates[0] = this.xCoord;
      coordinates[1] = this.yCoord;
      coordinates[2] = this.zCoord;
    }
  }