neoforged / Bus

Event firing and listening framework, based on the event bus concept
GNU Lesser General Public License v2.1
3 stars 8 forks source link

Replace `@Cancelable` by `ICancellableEvent` interface & related changes #20

Closed Technici4n closed 11 months ago

Technici4n commented 11 months ago
Technici4n commented 11 months ago

Generic events are now deprecated for removal, but I didn't want to make this dependent on the capability rework which still uses them and might take a bit of time to land. It's a bit messy to have the casts like in this PR, but they work and we'll be able to clean that up later.

I'm not totally set on removing the ASM handler yet (I need to benchmark more), so I figured I'd already get this out of the way.