Package com.jvn.toucanlib.neoforge.event
Class ToucanEventRegistration
java.lang.Object
com.jvn.toucanlib.neoforge.event.ToucanEventRegistration
Fluent wrapper for registering multiple listeners on the same NeoForge event bus.
-
Method Summary
Modifier and TypeMethodDescription<T extends net.neoforged.bus.api.Event>
ToucanEventRegistrationAdds a listener to the wrapped bus and returns this wrapper for chaining.
-
Method Details
-
listener
public <T extends net.neoforged.bus.api.Event> ToucanEventRegistration listener(Consumer<T> listener) Adds a listener to the wrapped bus and returns this wrapper for chaining.
-