mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Inventory handling
This commit is contained in:
parent
c870f080f2
commit
bc449b404e
20 changed files with 538 additions and 44 deletions
|
|
@ -5,6 +5,7 @@ using System.Text;
|
|||
using System.IO;
|
||||
using System.Threading;
|
||||
using System.Text.RegularExpressions;
|
||||
using MinecraftClient.Inventory;
|
||||
|
||||
namespace MinecraftClient
|
||||
{
|
||||
|
|
@ -620,6 +621,11 @@ namespace MinecraftClient
|
|||
return Handler.GetEntityHandlingEnabled();
|
||||
}
|
||||
|
||||
public bool GetInventoryEnabled()
|
||||
{
|
||||
return Handler.GetInventoryEnabled();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get the current Minecraft World
|
||||
/// </summary>
|
||||
|
|
@ -806,5 +812,11 @@ namespace MinecraftClient
|
|||
{
|
||||
return Handler.UseItemOnHand();
|
||||
}
|
||||
|
||||
protected Container GetPlayerInventory()
|
||||
{
|
||||
Container container = Handler.GetPlayerInventory();
|
||||
return new Container(container.ID,container.Type,container.Title,container.Items);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue