GameHandler.HasItemType C# (CSharp) Method

HasItemType() public static method

public static HasItemType ( int id ) : bool
id int
return bool
    public static bool HasItemType(int id)
    {
        bool has = false;
        foreach(DictionaryEntry entry in GameHandler.Instance().items)
        {
            if(DataHolder.Item((int)entry.Key).itemType == id)
            {
                has = true;
                break;
            }
        }
        return has;
    }
GameHandler