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 BufferedImageimage
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 intxfinal intyfinal intpixel
getPixel
public
int
getPixel
(int x, int y)
Method getPixel.
- Parameters:
intxinty
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 intxfinal inty
toString
public
String
toString
()
Method toString.