Complete inventory shift click

Complete item stacking mechanism for left click
This commit is contained in:
ReinforceZwei 2020-07-21 16:22:45 +08:00 committed by ORelio
parent a6e6668fe0
commit 9137fa59e7
5 changed files with 180 additions and 27 deletions

View file

@ -172,5 +172,19 @@ namespace MinecraftClient.Inventory
}
return result.ToArray();
}
public int[] GetEmpytSlot()
{
List<int> result = new List<int>();
for (int i = 0; i < Type.SlotCount(); i++)
{
result.Add(i);
}
foreach (var item in Items)
{
result.Remove(item.Key);
}
return result.ToArray();
}
}
}