Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Add BlockPressChangeEvent

Open dawon opened this issue 1 year ago • 2 comments

Adds Event to detect Presses and Releases of Buttons&Pressure Plates.

I know button press can be detected via InteractEvents, but my main motivation was the Release part, which does not have any event. So if you deem it to be too much, I can rework it into something like BlockReleasedEvent or BlockRevertedToDefaultEvent...

dawon avatar Feb 01 '24 22:02 dawon

Not really commenting on the merits of this event, but you can check for the pressing and releasing of pressure plates and buttons using BlockRedstoneEvent, can't you?

TonytheMacaroni avatar Feb 01 '24 23:02 TonytheMacaroni

Not really commenting on the merits of this event, but you can check for the pressing and releasing of pressure plates and buttons using BlockRedstoneEvent, can't you?

Yes, you can... Again, the pressing Part is there for sole parity/symmetry of the event... also as opposed to BlockRedstoneEvent, which is called for dozens other cases, this is only for the presses...

Edit, too late, can't read. You are right I probably could check it via that event, but my stance on generality still stands...

dawon avatar Feb 01 '24 23:02 dawon