Class ItemSwapAmountImpl

java.lang.Object
com.hammy275.immersivemc.server.api_impl.ItemSwapAmountImpl
All Implemented Interfaces:
ItemSwapAmount

public class ItemSwapAmountImpl extends Object implements ItemSwapAmount
  • Constructor Details

    • ItemSwapAmountImpl

      public ItemSwapAmountImpl(PlacementMode placementMode)
  • 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 interface ItemSwapAmount
      Parameters:
      stackSize - The size of the item stack being swapped.
      Returns:
      The amount of the stack to ideally swap.