mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Rename ClickWindow to WindowAction
This commit is contained in:
parent
1e5b9fc94b
commit
d6022d1ee9
7 changed files with 38 additions and 18 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, byte buttom)
|
||||
public bool DoWindowAction(int windowId, int slotId, WindowActionType action)
|
||||
{
|
||||
Item item = null;
|
||||
if (inventories.ContainsKey(windowId) && inventories[windowId].Items.ContainsKey(slotId))
|
||||
item = inventories[windowId].Items[slotId];
|
||||
|
||||
return handler.SendClickWindow(windowId, slotId, buttom, item);
|
||||
return handler.SendWindowAction(windowId, slotId, action, item);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue