public class ActionResult<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private T |
result |
private ActionResultType |
type |
Constructor and Description |
---|
ActionResult(ActionResultType typeIn,
T resultIn) |
Modifier and Type | Method and Description |
---|---|
T |
getResult() |
ActionResultType |
getType() |
static <T> ActionResult<T> |
resultConsume(T p_226249_0_) |
static <T> ActionResult<T> |
resultFail(T p_226251_0_) |
static <T> ActionResult<T> |
resultPass(T p_226250_0_) |
static <T> ActionResult<T> |
resultSuccess(T p_226248_0_) |
private final ActionResultType type
private final T result
public ActionResult(ActionResultType typeIn, T resultIn)
public ActionResultType getType()
public T getResult()
public static <T> ActionResult<T> resultSuccess(T p_226248_0_)
public static <T> ActionResult<T> resultConsume(T p_226249_0_)
public static <T> ActionResult<T> resultPass(T p_226250_0_)
public static <T> ActionResult<T> resultFail(T p_226251_0_)