Class ItemSwapAmountImpl
java.lang.Object
com.hammy275.immersivemc.server.api_impl.ItemSwapAmountImpl
- All Implemented Interfaces:
ItemSwapAmount
-
Constructor Summary
ConstructorsConstructorDescriptionItemSwapAmountImpl
(SwapMode swapMode, int numPlacements, int handStackSize, int slotIndex) -
Method Summary
Modifier and TypeMethodDescriptionint
Get the number of items to swap based on the input item stack size.Gets the underlying mode used for the swap.
-
Constructor Details
-
ItemSwapAmountImpl
-
-
Method Details
-
getNumItemsToSwap
public int getNumItemsToSwap()Description copied from interface:ItemSwapAmount
Get the number of items to swap based on the input item stack size.- Specified by:
getNumItemsToSwap
in interfaceItemSwapAmount
- Returns:
- The amount of the stack to ideally swap.
-
getSwapMode
Description copied from interface:ItemSwapAmount
Gets the underlying mode used for the swap. Useful for performing custom behavior instead of using aswapItems()
call inImmersiveLogicHelpers
.- Specified by:
getSwapMode
in interfaceItemSwapAmount
- Returns:
- The swap mode currently in use.
-