类 FluidActionResult
java.lang.Object
net.minecraftforge.fluids.FluidActionResult
Holds the result of a fluid action from
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.-
字段概要
字段 -
构造器概要
构造器限定符构造器说明private
FluidActionResult
(boolean success, @NotNull ItemStack result) FluidActionResult
(@NotNull ItemStack result) -
方法概要
-
字段详细资料
-
FAILURE
-
success
public final boolean success -
result
-
-
构造器详细资料
-
FluidActionResult
-
FluidActionResult
-
-
方法详细资料
-
isSuccess
public boolean isSuccess() -
getResult
-