EventBus icon indicating copy to clipboard operation
EventBus copied to clipboard

Event Bus

Results 13 EventBus issues
Sort by recently updated
recently updated
newest added

Adds, and migrates all references, to the IEvent interface to allow creating record based events in the future. I'm not sure if this was the correct way to do this,...

Adds these static methods: - `Event.hasListeners(bus)` - `Event.hasAnyListeners()` - `Event.getListenerListStatically()` Transformer changes `getListenerListStatically()` to grab the same static field that the instance method does. The `hasListeners()`/`hasAnyListeners()` methods check the `ListenerList`'s...

Feel free to update if any of these are incorrect or unnecessary

Adds variants with explicit event class to all addListener and addGenericListener methods that didn't already have them. Marks all the overloads without an event class parameter deprecated. Updates all tests...

`ListenerList#forceRebuild` simply sets a boolean to true, and relies on the next event post to do the actual cleanup: https://github.com/MinecraftForge/EventBus/blob/master/src/main/java/net/minecraftforge/eventbus/ListenerList.java#L223-L231 This means that if unregister is called and the event...

Supersedes #66. This allows for phase tracking to only apply to the requested phases, rather than an 'all or nothing' like previously. Will run the benchmarks later when I have...

enhancement

This removes the need for additional checks per listener when posting.

enhancement

For Sponge we would like to be able to intercept either the listener registration or the invocation of it. For EB6 we are using reflection to replace the EventBus with...

Consider the following event code: ```java public sealed interface ExampleEvent extends InheritableEvent { EventBus BUS = EventBus.create(ExampleEvent.class); record Pre() implements Cancellable, ExampleEvent { public static final CancellableEventBus BUS = CancellableEventBus.create(Pre.class);...

This PR adds complete JavaDocs to EventBus 7. These JavaDocs include explanations for type usage, use cases for the various characteristics, and *non-exhaustive* example snippets. Additionally, this PR adds JetBrains...