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 TypeMethodDescriptionintGet 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 aswapItems()call inImmersiveLogicHelpers.- Returns:
- The swap mode currently in use.
-