Esempio n. 1
0
        public static MCItemLocator[] GetAllMinecraftItems()
        {
            List <MCItemLocator> locators = new List <MCItemLocator>(128);
            string defaultIconsPath       = AppPaths.GetMCItemIconsPath();

            foreach (FileInfo item in IOHelper.EnumerateFileInfos(defaultIconsPath, "*.png"))
            {
                string        locatorName = "minecraft:" + Path.GetFileNameWithoutExtension(item.Name);
                MCItemLocator newLocator  = new MCItemLocator(locatorName, Path.Combine(defaultIconsPath, item.Name));
                locators.Add(newLocator);
            }
            return(locators.ToArray());
        }