mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Implement inventory right click
This commit is contained in:
parent
5da55a2f9a
commit
4f96aa2081
5 changed files with 16 additions and 8 deletions
|
|
@ -1511,13 +1511,13 @@ namespace MinecraftClient
|
|||
/// Click a slot in the specified window
|
||||
/// </summary>
|
||||
/// <returns>TRUE if the slot was successfully clicked</returns>
|
||||
public bool ClickWindowSlot(int windowId, int slotId)
|
||||
public bool ClickWindowSlot(int windowId, int slotId, byte buttom)
|
||||
{
|
||||
Item item = null;
|
||||
if (inventories.ContainsKey(windowId) && inventories[windowId].Items.ContainsKey(slotId))
|
||||
item = inventories[windowId].Items[slotId];
|
||||
|
||||
return handler.SendClickWindow(windowId, slotId, item);
|
||||
return handler.SendClickWindow(windowId, slotId, buttom, item);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue