mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Added a command to (re)name items in the Anvil
This commit is contained in:
parent
9855e2e0f1
commit
fce12db33f
8 changed files with 174 additions and 0 deletions
|
|
@ -2390,6 +2390,21 @@ namespace MinecraftClient
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Send the server a command to type in the item name in the Anvil inventory when it's open.
|
||||
/// </summary>
|
||||
/// <param name="itemName">The new item name</param>
|
||||
public bool SendRenameItem(string itemName)
|
||||
{
|
||||
if (inventories.Count == 0)
|
||||
return false;
|
||||
|
||||
if (inventories.Values.ToList().Last().Type != ContainerType.Anvil)
|
||||
return false;
|
||||
|
||||
return handler.SendRenameItem(itemName);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Event handlers: An event occurs on the Server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue