Class FluidActionResult

java.lang.Object
net.neoforged.neoforge.fluids.FluidActionResult

@Deprecated(since="1.21.9", forRemoval=true) public class FluidActionResult extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
The new ItemAccess-backed handler implementations will directly mutate the underlying item access, thus there is no need to represent the resulting item stack anymore.
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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final FluidActionResult
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    final ItemStack
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    FluidActionResult(boolean success, ItemStack result)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • FAILURE

      public static final FluidActionResult FAILURE
      Deprecated, for removal: This API element is subject to removal in a future version.
    • success

      public final boolean success
      Deprecated, for removal: This API element is subject to removal in a future version.
    • result

      public final ItemStack result
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • FluidActionResult

      public FluidActionResult(ItemStack result)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • FluidActionResult

      private FluidActionResult(boolean success, ItemStack result)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • isSuccess

      public boolean isSuccess()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getResult

      public ItemStack getResult()
      Deprecated, for removal: This API element is subject to removal in a future version.