Class ConnectionInitEvent
- java.lang.Object
- 
- net.md_5.bungee.api.plugin.Event
- 
- net.md_5.bungee.api.event.AsyncEvent<ConnectionInitEvent>
- 
- io.github.waterfallmc.waterfall.event.ConnectionInitEvent
 
 
 
- 
- All Implemented Interfaces:
- Cancellable
 
 public class ConnectionInitEvent extends AsyncEvent<ConnectionInitEvent> implements Cancellable Represents a brand new connection made to the proxy, allowing for plugins to efficiently close a connection, useful for connection throttlers, etc
- 
- 
Constructor SummaryConstructors Constructor Description ConnectionInitEvent(SocketAddress remoteAddress, ListenerInfo listener, Callback<ConnectionInitEvent> done)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InetSocketAddressgetRemoteAddress()Deprecated.BungeeCord can accept connections via Unix domain socketsSocketAddressgetRemoteSocketAddress()booleanisCancelled()Get whether or not this event is cancelled.voidsetCancelled(boolean cancel)Sets the cancelled state of this event.StringtoString()- 
Methods inherited from class net.md_5.bungee.api.event.AsyncEventcanEqual, completeIntent, equals, hashCode, postCall, registerIntent
 
- 
 
- 
- 
- 
Constructor Detail- 
ConnectionInitEventpublic ConnectionInitEvent(SocketAddress remoteAddress, ListenerInfo listener, Callback<ConnectionInitEvent> done) 
 
- 
 - 
Method Detail- 
isCancelledpublic boolean isCancelled() Description copied from interface:CancellableGet whether or not this event is cancelled.- Specified by:
- isCancelledin interface- Cancellable
- Returns:
- the cancelled state of this event
 
 - 
setCancelledpublic void setCancelled(boolean cancel) Description copied from interface:CancellableSets the cancelled state of this event.- Specified by:
- setCancelledin interface- Cancellable
- Parameters:
- cancel- the state to set
 
 - 
getRemoteAddress@Deprecated public InetSocketAddress getRemoteAddress() Deprecated.BungeeCord can accept connections via Unix domain sockets- Returns:
- the INetSocketAddress of the connection being opened
 
 - 
getRemoteSocketAddresspublic SocketAddress getRemoteSocketAddress() - Returns:
- the SocketAddress of the connection being opened
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- AsyncEvent<ConnectionInitEvent>
 
 
- 
 
-