Class BungeeBungeecordListener
- java.lang.Object
-
- com.alessiodp.core.common.messaging.bungee.BungeecordListener
-
- com.alessiodp.core.bungeecord.messaging.bungee.BungeeBungeecordListener
-
public abstract class BungeeBungeecordListener extends com.alessiodp.core.common.messaging.bungee.BungeecordListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classBungeeBungeecordListener.PacketListener
-
Constructor Summary
Constructors Constructor Description BungeeBungeecordListener(@NotNull com.alessiodp.core.common.ADPPlugin plugin, boolean listenToMain, boolean listenToSub)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidhandlePacket(byte[] bytes, @NotNull com.alessiodp.core.common.messaging.MessageChannel channel)Handle the message of the packetvoidregisterChannel(@NotNull com.alessiodp.core.common.messaging.MessageChannel channel)voidregisterListener()voidunregisterChannel(@NotNull com.alessiodp.core.common.messaging.MessageChannel channel)voidunregisterListener()
-
-
-
Method Detail
-
registerChannel
public void registerChannel(@NotNull @NotNull com.alessiodp.core.common.messaging.MessageChannel channel)- Specified by:
registerChannelin classcom.alessiodp.core.common.messaging.bungee.BungeecordListener
-
unregisterChannel
public void unregisterChannel(@NotNull @NotNull com.alessiodp.core.common.messaging.MessageChannel channel)- Specified by:
unregisterChannelin classcom.alessiodp.core.common.messaging.bungee.BungeecordListener
-
registerListener
public void registerListener()
- Specified by:
registerListenerin classcom.alessiodp.core.common.messaging.bungee.BungeecordListener
-
unregisterListener
public void unregisterListener()
- Specified by:
unregisterListenerin classcom.alessiodp.core.common.messaging.bungee.BungeecordListener
-
handlePacket
protected abstract void handlePacket(byte[] bytes, @NotNull @NotNull com.alessiodp.core.common.messaging.MessageChannel channel)Handle the message of the packet- Parameters:
bytes- the messagechannel- the channel used
-
-