1.20.6 - Not working yet

This commit is contained in:
Anon 2024-06-16 01:19:09 +02:00
parent 8270a2d9a3
commit 08c5c15557
17 changed files with 654 additions and 81 deletions

View file

@ -118,6 +118,9 @@ namespace MinecraftClient
// ChatBot OnNetworkPacket event
private bool networkPacketCaptureEnabled = false;
// Cookies
private Dictionary<string, byte[]> Cookies { get; set; } = new();
public int GetServerPort() { return port; }
public string GetServerHost() { return host; }
@ -143,6 +146,8 @@ namespace MinecraftClient
public ILogger GetLogger() { return Log; }
public int GetPlayerEntityID() { return playerEntityID; }
public List<ChatBot> GetLoadedChatBots() { return new List<ChatBot>(bots); }
public void GetCookie(string key, out byte[]? data) => Cookies.TryGetValue(key, out data);
public void SetCookie(string key, byte[] data) => Cookies[key] = data;
readonly TcpClient client;
readonly IMinecraftCom handler;