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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinitializeLocalChannel0(GeyserBootstrap bootstrap)The method to implement that is called byGeyserInjector.initializeLocalChannel(GeyserBootstrap)wrapped around a try/catch.voidonProxyReload(net.md_5.bungee.api.event.ProxyReloadEvent event)The reload process clears the listeners field.voidshutdown()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:GeyserInjectorThe method to implement that is called byGeyserInjector.initializeLocalChannel(GeyserBootstrap)wrapped around a try/catch.- Specified by:
initializeLocalChannel0in classGeyserInjector- Throws:
Exception
-
shutdown
public void shutdown()- Overrides:
shutdownin 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.
-