Class GeyserInjector
java.lang.Object
org.geysermc.geyser.network.netty.GeyserInjector
- Direct Known Subclasses:
GeyserBungeeInjector,GeyserSpigotInjector,GeyserVelocityInjector
Used to inject Geyser clients directly into the server, bypassing the need to implement a complete TCP connection,
by creating a local channel.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected io.netty.channel.ChannelFutureThe local channel we can use to inject ourselves into the server without creating a TCP connection.protected SocketAddressThe LocalAddress to use to connect to the server without connecting over TCP. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe LocalAddress to use to connect to the server without connecting over TCP.voidinitializeLocalChannel(GeyserBootstrap bootstrap)protected abstract voidinitializeLocalChannel0(GeyserBootstrap bootstrap)The method to implement that is called byinitializeLocalChannel(GeyserBootstrap)wrapped around a try/catch.voidshutdown()
-
Field Details
-
localChannel
protected io.netty.channel.ChannelFuture localChannelThe local channel we can use to inject ourselves into the server without creating a TCP connection. -
serverSocketAddress
The LocalAddress to use to connect to the server without connecting over TCP.
-
-
Constructor Details
-
GeyserInjector
public GeyserInjector()
-
-
Method Details
-
initializeLocalChannel
- Parameters:
bootstrap- the bootstrap of the Geyser instance.
-
initializeLocalChannel0
The method to implement that is called byinitializeLocalChannel(GeyserBootstrap)wrapped around a try/catch.- Throws:
Exception
-
shutdown
public void shutdown() -
getServerSocketAddress
The LocalAddress to use to connect to the server without connecting over TCP.
-