Making Bukkit.createInventory returning matching classes (interfaces)

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Affects Version/s: None
    • -
    • Yes

      Currently, Bukkit.createInventory(...) returns a CraftInventoryCustom. I think it would be better for it to return a class matching chosen InventoryType, Just like world.spawnEntity does.
      For example:
      ANVIL=> AnvilInventory
      CRAFTING => CraftingInventory
      ENCHANTING => EnchantingInventory

      This would give us access to more fuctions, like getRenameText in AnvilInventory, which we can only get by using CraftAnvilInventory.

            Assignee:
            Unassigned
            Reporter:
            GotiM
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: