From e9613ad366d9bce28014c7de33e343535bc047f4 Mon Sep 17 00:00:00 2001 From: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com> Date: Thu, 26 Mar 2020 16:54:01 +0800 Subject: [PATCH] Delete Inventory related code from Protocol Namespace New Inventory Handling have their own namespace Inventory --- MinecraftClient/Protocol/Inventory.cs | 23 ----------------------- MinecraftClient/Protocol/Item.cs | 27 --------------------------- 2 files changed, 50 deletions(-) delete mode 100644 MinecraftClient/Protocol/Inventory.cs delete mode 100644 MinecraftClient/Protocol/Item.cs diff --git a/MinecraftClient/Protocol/Inventory.cs b/MinecraftClient/Protocol/Inventory.cs deleted file mode 100644 index eaadebe2..00000000 --- a/MinecraftClient/Protocol/Inventory.cs +++ /dev/null @@ -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 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; - } - - } -} diff --git a/MinecraftClient/Protocol/Item.cs b/MinecraftClient/Protocol/Item.cs deleted file mode 100644 index d0b9d677..00000000 --- a/MinecraftClient/Protocol/Item.cs +++ /dev/null @@ -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; - } - - } -}