protected virtual void OnPacket_MobSpawn(Packets.MobSpawn e) { if(MobSpawn != null)MobSpawn(this, e); }
protected virtual void OnPacket_UseEntity(Packets.UseEntity e) { if(UseEntity != null)UseEntity(this, e); }
protected virtual void OnPacket_WindowItems(Packets.WindowItems e) { if(WindowItems != null)WindowItems(this, e); }
protected virtual void OnPacket_UpdateHealth(Packets.UpdateHealth e) { if(UpdateHealth != null)UpdateHealth(this, e); }
protected virtual void OnPacket_UpdateSign(Packets.UpdateSign e) { if(UpdateSign != null)UpdateSign(this, e); }
protected virtual void OnPacket_Thunderbolt(Packets.Thunderbolt e) { if(Thunderbolt != null)Thunderbolt(this, e); }
protected virtual void OnPacket_Transaction(Packets.Transaction e) { if(Transaction != null)Transaction(this, e); }
protected virtual void OnPacket_Player(Packets.Player e) { if(Player != null)Player(this, e); }
protected virtual void OnPacket_PlayerBlockPlacement(Packets.PlayerBlockPlacement e) { if(PlayerBlockPlacement != null)PlayerBlockPlacement(this, e); }
protected virtual void OnPacket_OpenWindow(Packets.OpenWindow e) { if(OpenWindow != null)OpenWindow(this, e); }
protected virtual void OnPacket_PickupSpawn(Packets.PickupSpawn e) { if(PickupSpawn != null)PickupSpawn(this, e); }
protected virtual void OnPacket_NewInvalidState(Packets.NewInvalidState e) { if(NewInvalidState != null)NewInvalidState(this, e); }
protected virtual void OnPacket_NamedEntitySpawn(Packets.NamedEntitySpawn e) { if(NamedEntitySpawn != null)NamedEntitySpawn(this, e); }
protected virtual void OnPacket_MultiBlockChange(Packets.MultiBlockChange e) { if(MultiBlockChange != null)MultiBlockChange(this, e); }
protected virtual void OnPacket_SetSlot(Packets.SetSlot e) { if(SetSlot != null)SetSlot(this, e); }
protected virtual void OnPacket_PlayerDigging(Packets.PlayerDigging e) { if(PlayerDigging != null)PlayerDigging(this, e); }
protected virtual void OnPacket_SpawnPosition(Packets.SpawnPosition e) { if(SpawnPosition != null)SpawnPosition(this, e); }
protected virtual void OnPacket_PlayerLook(Packets.PlayerLook e) { if(PlayerLook != null)PlayerLook(this, e); }
protected virtual void OnPacket_TimeUpdate(Packets.TimeUpdate e) { if(TimeUpdate != null)TimeUpdate(this, e); }
protected virtual void OnPacket_PlayerPosition(Packets.PlayerPosition e) { if(PlayerPosition != null)PlayerPosition(this, e); }
protected virtual void OnPacket_UNKNOWN_1B(Packets.UNKNOWN_1B e) { if(UNKNOWN_1B != null)UNKNOWN_1B(this, e); }
protected virtual void OnPacket_PlayerPositionAndLook(Packets.PlayerPositionAndLookIncoming e) { if(PlayerPositionAndLook != null)PlayerPositionAndLook(this, e); }
protected virtual void OnPacket_UpdateProgressBar(Packets.UpdateProgressBar e) { if(UpdateProgressBar != null)UpdateProgressBar(this, e); }
protected virtual void OnPacket_PlayNoteBlock(Packets.PlayNoteBlock e) { if(PlayNoteBlock != null)PlayNoteBlock(this, e); }
protected virtual void OnPacket_UseBed(Packets.UseBed e) { if(UseBed != null)UseBed(this, e); }
protected virtual void OnPacket_PreChunk(Packets.PreChunk e) { if(PreChunk != null)PreChunk(this, e); }
protected virtual void OnPacket_WindowClick(Packets.WindowClick e) { if(WindowClick != null)WindowClick(this, e); }
protected virtual void OnPacket_Respawn(Packets.Respawn e) { if(Respawn != null)Respawn(this, e); }
public void SendPacket(Packets.Packet packet) { if(_DebugLogOutgoing) { Console.ForegroundColor = ConsoleColor.Blue; Console.WriteLine("0x" + ((byte)packet.PacketId).ToString("X2") + ' ' + packet.PacketId.ToString()); if(_PacketDumpOutgoing) packet.Dump(); } stream.WriteByte((byte)packet.PacketId); byte[] data = packet.Data; stream.Write(data, 0, data.Length); if(_DebugLogOutgoing) Console.ForegroundColor = ConsoleColor.Gray; }
protected virtual void OnPacket_MapChunk(Packets.MapChunk e) { if(MapChunk != null)MapChunk(this, e); }