public interface ITurtleAccess
Modifier and Type | Method and Description |
---|---|
void |
addFuel(int fuel)
TODO: Document me
|
boolean |
consumeFuel(int fuel)
Removes some fuel from the turtles fuel supply.
|
java.lang.Object[] |
executeCommand(ILuaContext context,
ITurtleCommand command)
Adds a custom command to the turtles command queue.
|
int |
getDirection()
Returns the world direction the turtle is currently facing.
|
int |
getFuelLevel()
TODO: Document me
|
int |
getFuelLimit()
TODO: Document me
|
IInventory |
getInventory()
TODO: Document me
|
IPeripheral |
getPeripheral(TurtleSide side)
Returns the peripheral created by the upgrade on the specified side of the turtle, if there is one.
|
ChunkCoordinates |
getPosition()
Returns a vector containing the integer co-ordinates at which the turtle resides.
|
int |
getSelectedSlot()
TODO: Document me
|
ITurtleUpgrade |
getUpgrade(TurtleSide side)
Returns the turtle on the specified side of the turtle, if there is one.
|
NBTTagCompound |
getUpgradeNBTData(TurtleSide side)
TODO: Document me
|
Vec3 |
getVisualPosition(float f)
Returns a vector containing the floating point co-ordinates at which the turtle is rendered.
|
float |
getVisualYaw(float f)
TODO: Document me
|
World |
getWorld()
Returns the world in which the turtle resides.
|
boolean |
isFuelNeeded()
TODO: Document me
|
void |
playAnimation(TurtleAnimation animation)
TODO: Document me
|
void |
setDirection(int dir)
TODO: Document me
|
void |
setFuelLevel(int fuel)
TODO: Document me
|
void |
setSelectedSlot(int slot)
TODO: Document me
|
void |
setUpgrade(TurtleSide side,
ITurtleUpgrade upgrade)
TODO: Document me
|
boolean |
teleportTo(World world,
int x,
int y,
int z)
TODO: Document me
|
void |
updateUpgradeNBTData(TurtleSide side)
TODO: Document me
|
World getWorld()
ChunkCoordinates getPosition()
boolean teleportTo(World world, int x, int y, int z)
Vec3 getVisualPosition(float f)
f
- The subframe fractionfloat getVisualYaw(float f)
int getDirection()
void setDirection(int dir)
int getSelectedSlot()
void setSelectedSlot(int slot)
IInventory getInventory()
boolean isFuelNeeded()
int getFuelLevel()
void setFuelLevel(int fuel)
int getFuelLimit()
boolean consumeFuel(int fuel)
void addFuel(int fuel)
java.lang.Object[] executeCommand(ILuaContext context, ITurtleCommand command) throws LuaException, java.lang.InterruptedException
command
- an object which will execute the custom command when its point in the queue is reachedLuaException
java.lang.InterruptedException
ITurtleCommand
void playAnimation(TurtleAnimation animation)
ITurtleUpgrade getUpgrade(TurtleSide side)
void setUpgrade(TurtleSide side, ITurtleUpgrade upgrade)
IPeripheral getPeripheral(TurtleSide side)
NBTTagCompound getUpgradeNBTData(TurtleSide side)
void updateUpgradeNBTData(TurtleSide side)