2017-05-05 15:16:09 +00:00
|
|
|
/*
|
2017-05-01 13:32:39 +00:00
|
|
|
* This file is part of the public ComputerCraft API - http://www.computercraft.info
|
2019-01-01 01:10:18 +00:00
|
|
|
* Copyright Daniel Ratcliffe, 2011-2019. This API may be redistributed unmodified and in full only.
|
2017-05-01 13:32:39 +00:00
|
|
|
* For help using the API, and posting your mods, visit the forums at computercraft.info.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package dan200.computercraft.api.turtle;
|
|
|
|
|
2019-04-03 22:27:10 +00:00
|
|
|
import net.minecraft.util.math.Direction;
|
2017-05-05 13:56:15 +00:00
|
|
|
|
2017-05-01 13:32:39 +00:00
|
|
|
/**
|
2017-05-05 13:56:15 +00:00
|
|
|
* An enum representing the different actions that an {@link ITurtleUpgrade} of type Tool may be called on to perform by
|
|
|
|
* a turtle.
|
|
|
|
*
|
|
|
|
* @see ITurtleUpgrade#getType()
|
2019-04-03 22:27:10 +00:00
|
|
|
* @see ITurtleUpgrade#useTool(ITurtleAccess, TurtleSide, TurtleVerb, Direction)
|
2017-05-01 13:32:39 +00:00
|
|
|
*/
|
|
|
|
public enum TurtleVerb
|
|
|
|
{
|
2017-05-01 14:48:44 +00:00
|
|
|
/**
|
2017-05-05 13:56:15 +00:00
|
|
|
* The turtle called {@code turtle.dig()}, {@code turtle.digUp()} or {@code turtle.digDown()}
|
2017-05-01 14:48:44 +00:00
|
|
|
*/
|
|
|
|
Dig,
|
2017-05-05 13:56:15 +00:00
|
|
|
|
2017-05-01 14:48:44 +00:00
|
|
|
/**
|
2017-05-05 13:56:15 +00:00
|
|
|
* The turtle called {@code turtle.attack()}, {@code turtle.attackUp()} or {@code turtle.attackDown()}
|
2017-05-01 14:48:44 +00:00
|
|
|
*/
|
|
|
|
Attack,
|
2017-05-01 13:32:39 +00:00
|
|
|
}
|