public final class Cursor
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
Cursor(MinecraftWorld minecraftWorld,
int x,
int y,
int height,
Direction direction) |
Cursor(MinecraftWorld minecraftWorld,
java.awt.Point location,
int height,
Direction direction) |
Modifier and Type | Method and Description |
---|---|
Cursor |
backward() |
Cursor |
clone() |
Cursor |
down() |
Cursor |
forward() |
Material |
getBlock() |
Material |
getBlockAbove() |
Material |
getBlockBehind() |
Material |
getBlockBelow() |
Material |
getBlockInFront() |
Material |
getBlockToTheLeft() |
Material |
getBlockToTheRight() |
Direction |
getDirection() |
int |
getHeight() |
int |
getX() |
int |
getY() |
boolean |
isFree() |
boolean |
isFreeOrInsubstantial() |
Cursor |
moveLeft() |
Cursor |
moveRight() |
void |
setBlock(Material material) |
boolean |
setBlockIfFree(Material material) |
void |
setBlockWithDirection(Material material) |
boolean |
setBlockWithDirectionIfFree(Material material) |
void |
setDirection(Direction direction) |
void |
setHeight(int height) |
void |
setX(int x) |
void |
setY(int y) |
Cursor |
turnAround() |
Cursor |
turnLeft() |
Cursor |
turnRight() |
Cursor |
up() |
public Cursor(MinecraftWorld minecraftWorld, int x, int y, int height, Direction direction)
public Cursor(MinecraftWorld minecraftWorld, java.awt.Point location, int height, Direction direction)
public Direction getDirection()
public void setDirection(Direction direction)
public int getHeight()
public void setHeight(int height)
public int getX()
public void setX(int x)
public int getY()
public void setY(int y)
public Material getBlock()
public void setBlock(Material material)
public boolean isFree()
public boolean isFreeOrInsubstantial()
public boolean setBlockIfFree(Material material)
public void setBlockWithDirection(Material material)
public boolean setBlockWithDirectionIfFree(Material material)
public Material getBlockInFront()
public Material getBlockBehind()
public Material getBlockToTheLeft()
public Material getBlockToTheRight()
public Material getBlockAbove()
public Material getBlockBelow()
public Cursor forward()
public Cursor backward()
public Cursor moveLeft()
public Cursor moveRight()
public Cursor turnLeft()
public Cursor turnRight()
public Cursor turnAround()
public Cursor up()
public Cursor down()
public Cursor clone()
clone
in class java.lang.Object