Class VelocityBungeecordListener
- java.lang.Object
-
- com.alessiodp.core.common.messaging.bungee.BungeecordListener
-
- com.alessiodp.core.velocity.messaging.bungee.VelocityBungeecordListener
-
public abstract class VelocityBungeecordListener extends com.alessiodp.core.common.messaging.bungee.BungeecordListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classVelocityBungeecordListener.PacketListener
-
Constructor Summary
Constructors Constructor Description VelocityBungeecordListener(@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
-
-