Class GeyserBungeeInjector
java.lang.Object
org.geysermc.geyser.network.netty.GeyserInjector
org.geysermc.geyser.platform.bungeecord.GeyserBungeeInjector
- All Implemented Interfaces:
net.md_5.bungee.api.plugin.Listener
public class GeyserBungeeInjector
extends GeyserInjector
implements net.md_5.bungee.api.plugin.Listener
-
Field Summary
Fields inherited from class org.geysermc.geyser.network.netty.GeyserInjector
localChannel, serverSocketAddress
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
initializeLocalChannel0(GeyserBootstrap bootstrap)
The method to implement that is called byGeyserInjector.initializeLocalChannel(GeyserBootstrap)
wrapped around a try/catch.void
onProxyReload(net.md_5.bungee.api.event.ProxyReloadEvent event)
The reload process clears the listeners field.void
shutdown()
Methods inherited from class org.geysermc.geyser.network.netty.GeyserInjector
getServerSocketAddress, initializeLocalChannel
-
Constructor Details
-
GeyserBungeeInjector
public GeyserBungeeInjector(net.md_5.bungee.api.plugin.Plugin plugin)
-
-
Method Details
-
initializeLocalChannel0
Description copied from class:GeyserInjector
The method to implement that is called byGeyserInjector.initializeLocalChannel(GeyserBootstrap)
wrapped around a try/catch.- Specified by:
initializeLocalChannel0
in classGeyserInjector
- Throws:
Exception
-
shutdown
public void shutdown()- Overrides:
shutdown
in classGeyserInjector
-
onProxyReload
public void onProxyReload(net.md_5.bungee.api.event.ProxyReloadEvent event)The reload process clears the listeners field. Since we need to add to the listeners for maximum compatibility, we also need to re-add and re-enable our listener if a reload is initiated.
-