mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-29 13:04:59 +00:00
Added Book Support
This commit is contained in:
parent
8ba95c6140
commit
c94be261fd
15 changed files with 1275 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue