Class ItemSwapAmountImpl
java.lang.Object
com.hammy275.immersivemc.server.api_impl.ItemSwapAmountImpl
- All Implemented Interfaces:
ItemSwapAmount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getNumItemsToSwap
(int stackSize) Get the number of items to swap based on the input item stack size.
-
Constructor Details
-
ItemSwapAmountImpl
-
-
Method Details
-
getNumItemsToSwap
public int getNumItemsToSwap(int stackSize) Description copied from interface:ItemSwapAmount
Get the number of items to swap based on the input item stack size.- Specified by:
getNumItemsToSwap
in interfaceItemSwapAmount
- Parameters:
stackSize
- The size of the item stack being swapped.- Returns:
- The amount of the stack to ideally swap.
-