Class BungeeBungeecordDispatcher


  • public abstract class BungeeBungeecordDispatcher
    extends com.alessiodp.core.common.messaging.bungee.BungeecordDispatcher
    • Field Summary

      • Fields inherited from class com.alessiodp.core.common.messaging.bungee.BungeecordDispatcher

        plugin, registered, sendToBungeeCord, sendToMain, sendToSub
    • Constructor Summary

      Constructors 
      Constructor Description
      BungeeBungeecordDispatcher​(@NotNull com.alessiodp.core.common.ADPPlugin plugin, boolean sendToMain, boolean sendToSub, boolean sendToBungeeCord)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void registerChannel​(@NotNull com.alessiodp.core.common.messaging.MessageChannel channel)  
      boolean sendForwardPacket​(@NotNull com.alessiodp.core.common.messaging.ADPPacket packet, boolean log)  
      boolean sendPacket​(@NotNull com.alessiodp.core.common.messaging.ADPPacket packet, @NotNull com.alessiodp.core.common.messaging.MessageChannel channel, boolean log)  
      boolean sendPacketToUser​(@NotNull com.alessiodp.core.common.messaging.ADPPacket packet, @NotNull com.alessiodp.core.common.user.User user, @NotNull com.alessiodp.core.common.messaging.MessageChannel channel, boolean log)  
      void unregisterChannel​(@NotNull com.alessiodp.core.common.messaging.MessageChannel channel)  
      • Methods inherited from class com.alessiodp.core.common.messaging.bungee.BungeecordDispatcher

        register, sendForwardPacket, sendPacket, sendPacketToUser, unregister
    • Constructor Detail

      • BungeeBungeecordDispatcher

        public BungeeBungeecordDispatcher​(@NotNull
                                          @NotNull com.alessiodp.core.common.ADPPlugin plugin,
                                          boolean sendToMain,
                                          boolean sendToSub,
                                          boolean sendToBungeeCord)
    • Method Detail

      • registerChannel

        public void registerChannel​(@NotNull
                                    @NotNull com.alessiodp.core.common.messaging.MessageChannel channel)
        Specified by:
        registerChannel in class com.alessiodp.core.common.messaging.bungee.BungeecordDispatcher
      • unregisterChannel

        public void unregisterChannel​(@NotNull
                                      @NotNull com.alessiodp.core.common.messaging.MessageChannel channel)
        Specified by:
        unregisterChannel in class com.alessiodp.core.common.messaging.bungee.BungeecordDispatcher
      • sendPacket

        public boolean sendPacket​(@NotNull
                                  @NotNull com.alessiodp.core.common.messaging.ADPPacket packet,
                                  @NotNull
                                  @NotNull com.alessiodp.core.common.messaging.MessageChannel channel,
                                  boolean log)
        Specified by:
        sendPacket in class com.alessiodp.core.common.messaging.bungee.BungeecordDispatcher
      • sendPacketToUser

        public boolean sendPacketToUser​(@NotNull
                                        @NotNull com.alessiodp.core.common.messaging.ADPPacket packet,
                                        @NotNull
                                        @NotNull com.alessiodp.core.common.user.User user,
                                        @NotNull
                                        @NotNull com.alessiodp.core.common.messaging.MessageChannel channel,
                                        boolean log)
        Specified by:
        sendPacketToUser in class com.alessiodp.core.common.messaging.bungee.BungeecordDispatcher
      • sendForwardPacket

        public boolean sendForwardPacket​(@NotNull
                                         @NotNull com.alessiodp.core.common.messaging.ADPPacket packet,
                                         boolean log)
        Specified by:
        sendForwardPacket in class com.alessiodp.core.common.messaging.bungee.BungeecordDispatcher