Class CaptureChannel<T>
java.lang.Object
org.geysermc.conduit.CaptureChannel<T>
- Type Parameters:
T- the type of item emitted
Hands results from an
Intercept handler to whoever is listening.
Declare one as a static field marked Intercept.Capture and it is created when the
handler is registered. Listen through VirtualMachine.capture(CaptureChannel, Consumer), which scopes the listener
to a single run.
-
Method Summary
-
Method Details
-
emit
Sends an item to every listener. A listener that throws doesn't stop the others.- Parameters:
item- the item
-
listen
-
silence
-
create
Creates an empty channel.- Type Parameters:
T- the type of item emitted- Returns:
- a new channel with no listeners
-