public class Frame
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
long |
timestamp
The time of creation
|
int |
width |
int |
x |
int |
y |
| Constructor and Description |
|---|
Frame(byte[] map,
int width)
Creates a new centered frame
|
Frame(int x,
int y,
byte[] map,
int width)
Create a new non-centered frame
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
center()
Whether or not this frame should be centered
|
byte[] |
getDisplay()
Gives a mutable array of bytes
|
Frame |
setCenter(boolean center)
Set the centered option
|
public final long timestamp
public final int x
public final int y
public final int width
public Frame(int x,
int y,
byte[] map,
int width)
x - The top left X of the given frame, can be any numbery - The top left Y of the given frame, can be any numbermap - The map data, in MinecraftColor byteswidth - The width of this framepublic Frame(byte[] map,
int width)
map - The map data, in MinecraftColor byteswidth - The width of this framepublic byte[] getDisplay()
public boolean center()
public Frame setCenter(boolean center)
center -