Interface TransactionOption<T>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TransactionOption<T>
  • Field Details

    • ALL

      static final TransactionOption<ItemStack> ALL
      Place as much as the item as possible.

      The remaining, can be air.

    • ALL_OR_NOTHING

      static final TransactionOption<Boolean> ALL_OR_NOTHING
      Only place the item if can be fully added.

      Returns true if the item has been added, false if nothing changed.

    • DRY_RUN

      static final TransactionOption<Boolean> DRY_RUN
      Loop through the inventory items without changing anything.

      Returns true if the item can be fully added, false otherwise.

  • Method Details