[SPIGOT-824] Add SpongeSoakWaterEvent Created: 20/Apr/15  Updated: 23/Jul/18  Resolved: 23/Jul/18

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Johnnywoof Assignee: Unassigned
Resolution: Fixed Votes: 4
Labels: 1.8, Spigot, blocks, craftbukkit, event

Issue Links:
Duplicate
is duplicated by SPIGOT-1302 Create Event For Sponges (SpongeAbsor... Closed

 Description   

Currently, there is no block event called when a sponge soaks up water. Maybe a new block event can be added like SpongeSoakWaterEvent to fix this issue.



 Comments   
Comment by md_5 [ 19/Jul/18 ]

Poke me tomorrow and we can work on this.

Comment by Articdive [ 19/Jul/18 ]

I have attempted this but reached a brick wall the server calls the main method for each face touching water. It could be possible to implement this and make 1-6 SpongeAbsorbedEvent calls happen at once, not aware of how to make this work. uploaded to Spigot viewable under: https://hub.spigotmc.org/stash/users/articdive/repos/bukkit/commits?until=refs%2Fheads%2Fsponge-absorb-event

and https://hub.spigotmc.org/stash/users/articdive/repos/craftbukkit/browse?at=refs%2Fheads%2Fsponge-absorbed-event

Comment by Julian v.d Berkmortel [ 25/Nov/16 ]

I'll take a look at it.

Comment by SnowGears [ 25/Nov/15 ]

Some methods that would be good to include in the event:

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 implement cancellable interface

Comment by SpigotMC [ 20/Apr/15 ]

Your build is not the latest and therefore may be the reason you are having this issue. Spigot is 3 version(s) behind. CraftBukkit is 1 version(s) behind. This message was automatically generated and is not guaranteed to be a solution to your issue.

Generated at Fri Mar 14 14:36:05 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.