Package net.minecraftforge.fluids
Class FluidActionResult
- java.lang.Object
-
- net.minecraftforge.fluids.FluidActionResult
-
public class FluidActionResult extends java.lang.Object
Holds the result of a fluid action fromFluidUtil
. Failed actions will always haveisSuccess()
== false and an empty ItemStack result. SeeFAILURE
. Successful actions will always haveisSuccess()
== true. Successful actions may have an empty ItemStack result in some cases, for example the action succeeded and the resulting item was consumed.
-
-
Field Summary
Fields Modifier and Type Field Description static FluidActionResult
FAILURE
ItemStack
result
boolean
success
-
Constructor Summary
Constructors Modifier Constructor Description private
FluidActionResult(boolean success, ItemStack result)
FluidActionResult(ItemStack result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemStack
getResult()
boolean
isSuccess()
-
-
-
Field Detail
-
FAILURE
public static final FluidActionResult FAILURE
-
success
public final boolean success
-
result
@Nonnull public final ItemStack result
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
-
getResult
@Nonnull public ItemStack getResult()
-
-