Inventory handling

This commit is contained in:
ReinforceZwei 2020-03-26 15:01:42 +08:00 committed by ORelio
parent c870f080f2
commit bc449b404e
20 changed files with 538 additions and 44 deletions

View file

@ -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);
}
}
}