PixelProvider

public class PixelProvider

Class PixelProvider. Provides pixelprovider functionality for the Hytale server.

java.lang.Object > PixelProvider

Field Summary

No fields documented.

Method Detail

PixelProvider

public public PixelProvider (@Nonnull final BufferedImage image)

Method PixelProvider.

Parameters:
@Nonnull final BufferedImage image

getWidth

public int getWidth ()

Method getWidth.

getHeight

public int getHeight ()

Method getHeight.

getPixels

public int[] getPixels ()

Method getPixels.

setPixel

public void setPixel (final int x, final int y, final int pixel)

Method setPixel.

Parameters:
final int x
final int y
final int pixel

getPixel

public int getPixel (int x, int y)

Method getPixel.

Parameters:
int x
int y

if

public else if (x >= this.width)

Method if.

Parameters:
x >= this.width

arrIndex

protected int arrIndex (final int x, final int y)

Method arrIndex.

Parameters:
final int x
final int y

copy

public PixelProvider copy ()

Method copy.

toString

public String toString ()

Method toString.