public GatheringListItem(IMinecraftItem item, int requiredAmount, int currentAmount, bool isChecked = false)
 {
     Item           = item;
     RequiredAmount = requiredAmount;
     CurrentAmount  = currentAmount;
     IsChecked      = isChecked;
 }
Beispiel #2
0
        private bool ItemCategoryFilter(object obj)
        {
            IMinecraftItem item = obj as IMinecraftItem;

            switch (Categories[CategoryIndex])
            {
            case "All":
                return(true);

            case "Building Blocks":
                return(item.Category == ItemCategory.BuildingBlocks ? true : false);

            case "Decorations":
                return(item.Category == ItemCategory.Decorations ? true : false);

            case "Redstone":
                return(item.Category == ItemCategory.Redstone ? true : false);

            case "Transportation":
                return(item.Category == ItemCategory.Transportation ? true : false);

            case "Miscellaneous":
                return(item.Category == ItemCategory.Miscellaneous ? true : false);

            case "Foodstuffs":
                return(item.Category == ItemCategory.Foodstuffs ? true : false);

            case "Brewing":
                return(item.Category == ItemCategory.Brewing ? true : false);

            case "Combat":
                return(item.Category == ItemCategory.Combat ? true : false);
            }

            return(false);
        }