toggle menu
FOPBot
0.7.1-SNAPSHOT
jvm
switch theme
search in API
FOPBot
/
fopbot
/
Block
Block
public
class
Block
extends
FieldEntity
(
source
)
A field entity that represents a block on a graphical user interface.
Members
Constructors
Block
Link copied to clipboard
public
void
Block
(
int x
,
int y
)
Constructs and initializes a block at the specified
(x,y)
location.
Properties
x
Link copied to clipboard
public
int
x
The X coordinate of this
FieldEntity
.
y
Link copied to clipboard
public
int
y
The Y coordinate of this
FieldEntity
.
Functions
get
X
Link copied to clipboard
public
int
getX
(
)
Returns the X coordinate of this
FieldEntity
.
get
Y
Link copied to clipboard
public
int
getY
(
)
Returns the Y coordinate of this
FieldEntity
.
set
X
Link copied to clipboard
protected
void
setX
(
int x
)
Sets the X coordinate of the field entity to the specified X coordinate.
set
Y
Link copied to clipboard
protected
void
setY
(
int y
)
Sets the Y coordinate of the field entity to the specified Y coordinate.