ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/api/farmer/FarmerResult.java
2020-09-07 15:29:31 +01:00

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
}