using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MinecraftClient.Inventory
{
///
/// Represents an item inside a Container
///
public class Item
{
///
/// Item Type
///
public ItemType Type;
///
/// Item Count
///
public int Count;
///
/// Slot ID in the parent inventory
///
/// -1 means currently being dragged by mouse
public int SlotID;
///
/// Item Metadata
///
public Dictionary NBT;
///
/// Create an item with Type ID, Count and Slot ID
///
/// Item Type ID
/// Item Count
/// Item Slot ID in parent inventory
public Item(int id, int count, int slotID)
{
this.Type = (ItemType)id;
this.Count = count;
this.SlotID = slotID;
this.NBT = new Dictionary();
}
///
/// Create an item with Type ID, Count, Slot ID and Metadata
///
/// Item Type ID
/// Item Count
/// Item Slot ID in parent inventory
/// Item Metadata
public Item(int id, int count, int slotID, Dictionary nbt)
{
this.Type = (ItemType)id;
this.Count = count;
this.SlotID = slotID;
this.NBT = nbt;
}
}
}