Interface ItemSwapAmount

All Known Implementing Classes:
ConstantItemSwapAmount, ItemSwapAmountImpl

public interface ItemSwapAmount
Encapsulates the data used to determine how many items are being swapped for this swap.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the number of items to swap based on the input item stack size.
    Gets the underlying mode used for the swap.
  • Method Details

    • getNumItemsToSwap

      int getNumItemsToSwap()
      Get the number of items to swap based on the input item stack size.
      Returns:
      The amount of the stack to ideally swap.
    • getSwapMode

      SwapMode getSwapMode()
      Gets the underlying mode used for the swap. Useful for performing custom behavior instead of using a swapItems() call in ImmersiveLogicHelpers.
      Returns:
      The swap mode currently in use.