mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-05-06 02:47:05 +02:00
24 lines
658 B
Java
24 lines
658 B
Java
package de.ellpeck.actuallyadditions.api.farmer;
|
|
|
|
/**
|
|
* Return values for IFarmerBehavior, each one has a different meaning in harvest and planting contexts.
|
|
*
|
|
*/
|
|
public enum FarmerResult {
|
|
|
|
/**
|
|
* Indicates that your behavior failed to perform the action it attempted.
|
|
*/
|
|
FAIL,
|
|
|
|
/**
|
|
* Indicates that your behavior succeeded doing the action it attempted. For harvesting, this also shrinks the current stack by one, and stops processing.
|
|
*/
|
|
SUCCESS,
|
|
|
|
/**
|
|
* Indicates you want the farmer to halt all further actions this tick. This will exit the farmer behavior loop if returned.
|
|
*/
|
|
STOP_PROCESSING
|
|
}
|