C# Class Pdelvo.Minecraft.Proxy.Library.Plugins.PluginManager

The main interface between the proxy server and the loaded plugins
Afficher le fichier Open project: pdelvo/Pdelvo.Minecraft.Proxy Class Usage Examples

Private Properties

Свойство Type Description
LoadPlugins IEnumerable

Méthodes publiques

Méthode Description
ApplyClientPacket ( PacketReceivedEventArgs args ) : void

Passed a packet sent by a client to the packet listeners

ApplyServerPacket ( PacketReceivedEventArgs args ) : void

Passed a packet sent by a server to the packet listeners

PluginManager ( IProxyServer server ) : System

Creates a new instance of the plugin manager class

RegisterPacketListener ( IPacketListener listener ) : void

Registers a new packet listener. The packet listener will be called when a packet should be redirected from one end point to the other

Private Methods

Méthode Description
LoadPlugins ( ) : IEnumerable

Method Details

ApplyClientPacket() public méthode

Passed a packet sent by a client to the packet listeners
public ApplyClientPacket ( PacketReceivedEventArgs args ) : void
args Pdelvo.Minecraft.Proxy.Library.Plugins.Events.PacketReceivedEventArgs A PacketReceivedEventArgs object containing information about the packet
Résultat void

ApplyServerPacket() public méthode

Passed a packet sent by a server to the packet listeners
public ApplyServerPacket ( PacketReceivedEventArgs args ) : void
args Pdelvo.Minecraft.Proxy.Library.Plugins.Events.PacketReceivedEventArgs A PacketReceivedEventArgs object containing information about the packet
Résultat void

PluginManager() public méthode

Creates a new instance of the plugin manager class
public PluginManager ( IProxyServer server ) : System
server IProxyServer the proxy server this plugin manager belongs to
Résultat System

RegisterPacketListener() public méthode

Registers a new packet listener. The packet listener will be called when a packet should be redirected from one end point to the other
public RegisterPacketListener ( IPacketListener listener ) : void
listener IPacketListener The packet listener which should be called on incoming packets
Résultat void