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 |
| Modifier | Constructor and Description |
|---|---|
private |
FluidActionResult(boolean success,
ItemStack result) |
|
FluidActionResult(ItemStack result) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
getResult() |
boolean |
isSuccess() |
public static final FluidActionResult FAILURE
public final boolean success
@Nonnull public final ItemStack result
public FluidActionResult(@Nonnull
ItemStack result)
private FluidActionResult(boolean success,
@Nonnull
ItemStack result)
public boolean isSuccess()
@Nonnull public ItemStack getResult()