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

Create Event For Sponges (SpongeAbsorbEvent)

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • None

      Currently there is no way to get how many water blocks a sponge absorbed when placed in water. The new event will also be cancellable.

      SpongeAbsorbEvent

      Block getBlock()

      • the sponge block that caused the absorb event to trigger
        List<Block> getRemovedBlocks()
      • a list of all of water blocks the sponge removed

      Will also have all necessary cancellable methods because it implements cancellable interface

            Unassigned Unassigned
            SnowGears SnowGears
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: