87 lines
2.2 KiB
Java
87 lines
2.2 KiB
Java
/*
|
|
* This file is part of the public ComputerCraft API - http://www.computercraft.info
|
|
* Copyright Daniel Ratcliffe, 2011-2021. This API may be redistributed unmodified and in full only.
|
|
* For help using the API, and posting your mods, visit the forums at computercraft.info.
|
|
*/
|
|
package dan200.computercraft.api.turtle;
|
|
|
|
/**
|
|
* An animation a turtle will play between executing commands.
|
|
*
|
|
* Each animation takes 8 ticks to complete unless otherwise specified.
|
|
*
|
|
* @see ITurtleAccess#playAnimation(TurtleAnimation)
|
|
*/
|
|
public enum TurtleAnimation
|
|
{
|
|
/**
|
|
* An animation which does nothing. This takes no time to complete.
|
|
*
|
|
* @see #WAIT
|
|
* @see #SHORT_WAIT
|
|
*/
|
|
NONE,
|
|
|
|
/**
|
|
* Make the turtle move forward. Note that the animation starts from the block <em>behind</em> it, and
|
|
* moves into this one.
|
|
*/
|
|
MOVE_FORWARD,
|
|
|
|
/**
|
|
* Make the turtle move backwards. Note that the animation starts from the block <em>in front</em> it, and
|
|
* moves into this one.
|
|
*/
|
|
MOVE_BACK,
|
|
|
|
/**
|
|
* Make the turtle move backwards. Note that the animation starts from the block <em>above</em> it, and
|
|
* moves into this one.
|
|
*/
|
|
MOVE_UP,
|
|
|
|
/**
|
|
* Make the turtle move backwards. Note that the animation starts from the block <em>below</em> it, and
|
|
* moves into this one.
|
|
*/
|
|
MOVE_DOWN,
|
|
|
|
/**
|
|
* Turn the turtle to the left. Note that the animation starts with the turtle facing <em>right</em>, and
|
|
* the turtle turns to face in the current direction.
|
|
*/
|
|
TURN_LEFT,
|
|
|
|
/**
|
|
* Turn the turtle to the left. Note that the animation starts with the turtle facing <em>right</em>, and
|
|
* the turtle turns to face in the current direction.
|
|
*/
|
|
TURN_RIGHT,
|
|
|
|
/**
|
|
* Swing the tool on the left.
|
|
*/
|
|
SWING_LEFT_TOOL,
|
|
|
|
/**
|
|
* Swing the tool on the right.
|
|
*/
|
|
SWING_RIGHT_TOOL,
|
|
|
|
/**
|
|
* Wait until the animation has finished, performing no movement.
|
|
*
|
|
* @see #SHORT_WAIT
|
|
* @see #NONE
|
|
*/
|
|
WAIT,
|
|
|
|
/**
|
|
* Wait until the animation has finished, performing no movement. This takes 4 ticks to complete.
|
|
*
|
|
* @see #WAIT
|
|
* @see #NONE
|
|
*/
|
|
SHORT_WAIT,
|
|
}
|