Added Book Support

This commit is contained in:
Anon 2026-05-02 17:52:17 +02:00
parent 8ba95c6140
commit c94be261fd
15 changed files with 1275 additions and 3 deletions

View file

@ -199,6 +199,17 @@ namespace MinecraftClient.Protocol
/// <returns>True if packet was successfully sent</returns>
bool SendPlaceRecipe(int windowId, string recipeId, bool makeAll);
/// <summary>
/// Send a book edit/sign packet for the currently held writable book.
/// </summary>
/// <param name="currentBook">Current held writable book</param>
/// <param name="pages">Book pages</param>
/// <param name="title">Title when signing, otherwise null</param>
/// <param name="author">Current player name when signing</param>
/// <param name="selectedHotbarSlot">Selected hotbar slot, 0-8</param>
/// <returns>True if packet was successfully sent</returns>
bool SendEditBook(Item currentBook, IReadOnlyList<string> pages, string? title, string author, int selectedHotbarSlot);
/// <summary>
/// Plays animation
/// </summary>