Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5070

isOpenable for InventoryHolder

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • This server is running CraftBukkit version git-Spigot-df0eb25-411609d (MC: 1.14.2) (Implementing API version 1.14.2-R0.1-SNAPSHOT)
    • Yes

      Please add a method to check if a certain InventoryHolder's Inventory can be opened because there are several hard-to-check-for ways that this could be blocked:

      • Some materials above chests/enderchests allow for opening, some don't
      • A cat sitting on top of a chest
      • Double chest handling is even more complicated in those cases.
      • Some InventoryHolders don't have such requirements at all (like furnaces)

      Therefore an isOpenable method that checks on the serverside if a player would be able to open a certain container would be very helpful and makes code much more elegant as lots of special cases could be avoided.

            Unassigned Unassigned
            Photon Photon
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: