ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/api/farmer/FarmerResult.java

24 lines
658 B
Java
Raw Normal View History

package de.ellpeck.actuallyadditions.api.farmer;
2018-07-28 02:05:30 +02:00
/**
* 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,
2018-07-28 02:05:30 +02:00
/**
* Indicates that your behavior succeeded doing the action it attempted. For harvesting, this also shrinks the current stack by one, and stops processing.
*/
SUCCESS,
2018-07-28 02:05:30 +02:00
/**
* Indicates you want the farmer to halt all further actions this tick. This will exit the farmer behavior loop if returned.
*/
STOP_PROCESSING
}