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 ID
///
public int ID;
///
/// Item Count
///
public int Count;
///
/// Slot ID in the parent inventory (-1 means not specified)
///
public int SlotID = -1;
///
/// Item Metadata
///
public Dictionary NBT;
///
/// 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.ID = ID;
this.Count = Count;
this.SlotID = SlotID;
this.NBT = 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.ID = ID;
this.Count = Count;
this.SlotID = SlotID;
}
///
/// Create an item with Type ID and Count
///
/// Item Type ID
/// Item Count
public Item(int ID, int Count)
{
this.ID = ID;
this.Count = Count;
}
}
}