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 org.geysermc.geyser.network.netty.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
    Constructor
    Description
    GeyserBungeeInjector(net.md_5.bungee.api.plugin.Plugin plugin)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    initializeLocalChannel0(org.geysermc.geyser.GeyserBootstrap bootstrap)
     
    void
    onProxyReload(net.md_5.bungee.api.event.ProxyReloadEvent event)
    The reload process clears the listeners field.
    void
     

    Methods inherited from class org.geysermc.geyser.network.netty.GeyserInjector

    getServerSocketAddress, initializeLocalChannel

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GeyserBungeeInjector

      public GeyserBungeeInjector(net.md_5.bungee.api.plugin.Plugin plugin)
  • Method Details

    • initializeLocalChannel0

      protected void initializeLocalChannel0(org.geysermc.geyser.GeyserBootstrap bootstrap) throws Exception
      Specified by:
      initializeLocalChannel0 in class org.geysermc.geyser.network.netty.GeyserInjector
      Throws:
      Exception
    • shutdown

      public void shutdown()
      Overrides:
      shutdown in class org.geysermc.geyser.network.netty.GeyserInjector
    • 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.