/**
   * Set the value of a voxel.
   *
   * @param x The x world coordinate
   * @param y The y world coordinate
   * @param z The z world coordinate
   * @param state The value. 0 = nothing. > 0 materialID
   * @param material The materialID
   */
  public void setDataWorld(double x, double y, double z, byte state, long material) {
    /*
          // Not sure why this was here, doesn't seem to make sense.

          if (vd.getState() != Grid.OUTSIDE && state != Grid.OUTSIDE
              && vd.getAttribute() != material ) {
              throw new IllegalArgumentException("Invalid state change at pos: " + x + " " + y + " " + z);
          }
    */
    ((AttributeGrid) grid).setDataWorld(x, y, z, state, material);
  }