//Check Pixel public bool isAirPixel(generic.util.math.PixelPos pos) { if (getPixelState(pos).getPixel() == generic.init.Pixels.AIR) { return(true); } else { return(false); } }
public virtual bool generate(World world, Random rand, generic.util.math.PixelPos pos) { return(false); }
//Temporary for now, will implement a way to manipulate the pond size so as to make lakes larger. public new bool generate(World world, Random rand, generic.util.math.PixelPos pos) { return(base.generate(world, rand, pos)); }
public void setPixelState(generic.util.math.PixelPos pos, float pixel, float state) { worldFile[pos.getX(), pos.getZ()] = new pixelData(pos.getY(), (int)pixel, (int)state); }
public void setPixelState(generic.util.math.PixelPos pos, generic.pixel.Pixel pixel) { worldFile[pos.getX(), pos.getZ()] = new pixelData(pos.getY(), pixel.getPixelID(), pixel.getState()); }
public void setPixelState(generic.util.math.PixelPos pos, float pixel) { setPixelState(pos, pixel, 0); }
//Get / Set Pixel public generic.pixel.Pixel getPixelState(generic.util.math.PixelPos pos) { return(new pixel.Pixel(worldFile[pos.getX(), pos.getZ()].getPixel, worldFile[pos.getX(), pos.getZ()].getState)); }
public int getHeight(generic.util.math.PixelPos pos) { return(worldFile[pos.getX(), pos.getZ()].getHeight); }