Bukkit/CraftBukkit — pull request #1136 by eueln (2013-04-11 19:50:04+00:00)
Title: [B+C] Allow inventory creation by InventoryType and title. Fixes BUKKIT-4045

__The issue__

With the current API it is possible to create an inventory with a specific type, but it is not possible to give such an inventory a title other than the default.

__Justification for this PR__

It is possible to give a chest-like inventory a specified title, and this functionality should be extended to the other inventory types.

__PR Breakdown__

On the Bukkit side, it exposes a new API for creating an inventory by InventoryType and title: `Bukkit.createInventory(InventoryHolder owner, InventoryType type, String title)`

On the CraftBukkit side, `CraftInventoryCustom` (and subsequently CraftInventoryCustom.MinecraftInventory) are given matching constructors.

__Testing Results and Materials__

I've thrown together a plugin that uses the new API call to open a Furnace with a specified title. To make the inventory appear, do `/open`: [InventoryTypeWithTitle.jar](https://dl.dropboxusercontent.com/u/2241170/tmp/InventoryTypeWithTitle.jar)

__Relevant PRs__

B-[TBD]

__JIRA Ticket__

BUKKIT-4045 https://bukkit.atlassian.net/browse/BUKKIT-4045