mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Delete Inventory related code from Protocol Namespace
New Inventory Handling have their own namespace Inventory
This commit is contained in:
parent
2b76de167b
commit
e9613ad366
2 changed files with 0 additions and 50 deletions
|
|
@ -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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue