MineViewer.SMPInterface.Subscribe C# (CSharp) Method

Subscribe() public static method

public static Subscribe ( PacketTypes packet, System.Action onCall ) : void
packet PacketTypes
onCall System.Action
return void
        public static void Subscribe(PacketTypes packet, Action onCall)
        {
            Subscribers.Add((byte)packet, onCall);
        }