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

Implement more Attachable blocks to Attachable BlockData

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • n/a
    • n/a
    • Yes

      So I was working on my plugin (I took over from a dev and updated it to 1.13+), anyways I noticed there was an old deprecated method inside which was using MaterialData Attachable.
      This allowed for checking if attached and what not.

      When I went to update to new 1.13+ API, I noticed that the BlockData Attachable was only available for tripwire and tripwire hook, where as the old MaterialData Attachable was available for all attachable blocks, such as Banner, Button, CocoaPlant, Ladder, Lever, PistonExtensionMaterial, RedstoneTorch, Sign, SimpleAttachableMaterialData, Torch, TrapDoor, TripwireHook.

      This would be handy to have as part of the block data as well, use case:
      Lets say I want to set a block to air, but I want to check the relative blocks around it, and see if they are attached to said block.

      Thank you for your consideration.

            Unassigned Unassigned
            ShaneBee Shane Bee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: