public class FluidActionResult
extends java.lang.Object
FluidUtil.
Failed actions will always have isSuccess() == false and an empty ItemStack result. See FAILURE.
Successful actions will always have isSuccess() == true.
Successful actions may have an empty ItemStack result in some cases,
for example the action succeeded and the resulting item was consumed.| Modifier and Type | Field and Description |
|---|---|
static FluidActionResult |
FAILURE |
ItemStack |
result |
boolean |
success |
| Constructor and Description |
|---|
FluidActionResult(ItemStack result) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
getResult() |
boolean |
isSuccess() |
public static final FluidActionResult FAILURE
public final boolean success
public final ItemStack result
public FluidActionResult(ItemStack result)
public boolean isSuccess()
public ItemStack getResult()