public abstract class GeyserInjector extends Object
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.channel.ChannelFuture |
localChannel
The local channel we can use to inject ourselves into the server without creating a TCP connection.
|
protected SocketAddress |
serverSocketAddress
The LocalAddress to use to connect to the server without connecting over TCP.
|
| Constructor and Description |
|---|
GeyserInjector() |
| Modifier and Type | Method and Description |
|---|---|
void |
initializeLocalChannel(GeyserBootstrap bootstrap) |
protected abstract void |
initializeLocalChannel0(GeyserBootstrap bootstrap)
The method to implement that is called by
initializeLocalChannel(GeyserBootstrap) wrapped around a try/catch. |
void |
shutdown() |
protected io.netty.channel.ChannelFuture localChannel
protected SocketAddress serverSocketAddress
public void initializeLocalChannel(GeyserBootstrap bootstrap)
bootstrap - the bootstrap of the Geyser instance.protected abstract void initializeLocalChannel0(GeyserBootstrap bootstrap) throws Exception
initializeLocalChannel(GeyserBootstrap) wrapped around a try/catch.Exceptionpublic void shutdown()
Copyright © 2021 GeyserMC. All rights reserved.