Check if x items would fit into y chests

Discussion in 'Plugin Development' started by Baba43, Apr 29, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Baba43

    Hi,

    for my new plugin I need to know if a list of ItemStacks would match into a list of chests.

    If they would not I don't want to place any items.

    Instead of calculating slot by slot I thought about cloning the inventory and just trying to add them.

    But maybe you guys have other ideas :)
     
  2. Offline

    Nitnelave

    I think cloning and using the addItem method seems a sound solution.
     
Thread Status:
Not open for further replies.

Share This Page