Delete Inventory related code from Protocol Namespace

New Inventory Handling have their own namespace Inventory
This commit is contained in:
ReinforceZwei 2020-03-26 16:54:01 +08:00 committed by ORelio
parent 2b76de167b
commit e9613ad366
2 changed files with 0 additions and 50 deletions

View file

@ -1,23 +0,0 @@
using System;
using System.Collections.Generic;
namespace MinecraftClient.Protocol
{
public class Inventory
{
public byte id { get; set; }
public InventoryType type { get; set; }
public string title { get; set; }
public byte slots { get; set; }
public Dictionary<Item, int> items { get; set; }
public Inventory(byte id, InventoryType type, string title, byte slots)
{
this.id = id;
this.type = type;
this.title = title;
this.slots = slots;
}
}
}

View file

@ -1,27 +0,0 @@
using System;
namespace MinecraftClient.Protocol
{
public class Item
{
public int id;
public int count;
public int damage;
public byte nbtData;
public Item(int id, int count)
{
this.id = id;
this.count = count;
this.damage = 0;
}
public Item(int id, int damage, int count, byte nbtData)
{
this.id = id;
this.count = count;
this.damage = damage;
this.nbtData = nbtData;
}
}
}