Add API to get the Container Item of an ItemType
*/
Optional<BlockType> getBlock();
+ /**
+ * Gets the container item of this item if one exists.
+ * <p>e.g. {@link ItemTypes#BUCKET} for {@link ItemTypes#WATER_BUCKET}</p>
+ *
+ * @return The container item.
+ */
+ Optional<ItemType> getContainer();
+
/**
* Gets the id of this item.
*
