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.
|
EnumFacing |
getDirection()
Returns the world direction the turtle is currently facing.
|
int |
getDyeColour()
Gets the colour the turtle has been dyed.
|
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.
|
BlockPos |
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(EnumFacing dir)
TODO: Document me
|
void |
setDyeColour(int dyeColour)
Sets the colour of the turtle, as if the player had dyed it with a dye item.
|
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,
BlockPos pos)
TODO: Document me
|
void |
updateUpgradeNBTData(TurtleSide side)
TODO: Document me
|
World getWorld()
BlockPos getPosition()
boolean teleportTo(World world,
BlockPos pos)
Vec3 getVisualPosition(float f)
f - The subframe fractionfloat getVisualYaw(float f)
EnumFacing getDirection()
void setDirection(EnumFacing dir)
int getSelectedSlot()
void setSelectedSlot(int slot)
void setDyeColour(int dyeColour)
dyeColour - 0-15 to dye the turtle one of the 16 standard minecraft colours, or -1 to remove the dye from the turtle.int getDyeColour()
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 reachedLuaExceptionjava.lang.InterruptedExceptionITurtleCommandvoid 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)