Class StashPlugin

All Implemented Interfaces:
CommandOwner

public class StashPlugin extends JavaPlugin
  • Constructor Details

  • Method Details

    • stash

      @Nullable public static ListTransaction<ItemStackTransaction> stash(@Nonnull BlockModule.BlockStateInfo blockStateInfo, @Nonnull ItemContainerBlock containerState, boolean clearDropList)
      Called to stash the items into the container based on its droplist.
      Parameters:
      blockStateInfo - The BlockModule.BlockStateInfo for the block being stashed.
      containerState - The container state to stash items into.
      clearDropList - The flag to clear the droplist after stashing.
      Returns:
      the transaction representing the stashing operation, or null if no droplist is set.