Update Chest API for new merging logic.
import org.spongepowered.api.item.inventory.Inventory;
import java.util.Optional;
-import java.util.Set;
/**
* Represents a Chest.
Optional<Inventory> getDoubleChestInventory();
/**
- * Returns the connected {@link Chest}s, if available.
+ * Returns the connected {@link Chest}, if available.
*
- * @return The connected Chests, if available
+ * <p>If this chest is not part of a double chest, then this method
+ * will return {@link Optional#empty()}.</p>
+ *
+ * @return The connected {@link Chest}, if available
*/
- Set<Chest> getConnectedChests();
+ Optional<Chest> getConnectedChest();
/**
* {@link Keys#CHEST_ATTACHMENT}
