2017-02-22 13:28:53 +01:00
|
|
|
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.
|
|
|
|
*/
|
2017-02-22 13:28:53 +01:00
|
|
|
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.
|
|
|
|
*/
|
2017-02-22 13:28:53 +01:00
|
|
|
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.
|
|
|
|
*/
|
2017-02-22 13:28:53 +01:00
|
|
|
STOP_PROCESSING
|
|
|
|
}
|