test_class.declarator: folder = StoreLocation.getTemporaryFolder()
test_class.modifier: @Rule
  	public
test_class.original_string: @Rule
  	public TemporaryFolder folder = StoreLocation.getTemporaryFolder();
test_class.type: TemporaryFolder
test_class.var_name: folder
test_class.file: cache/src/test/java/net/runelite/cache/item/ItemSpriteFactoryTest.java
test_class.identifier: ItemSpriteFactoryTest
test_case.body: @Test
  	@Ignore
  	public void test() throws IOException
  	{
  		File base = StoreLocation.LOCATION,
  			outDir = folder.newFolder();
  
  		int count = 0;
  
  		try (Store store = new Store(base))
  		{
  			store.load();
  
  			ItemManager itemManager = new ItemManager(store);
  			itemManager.load();
  
  			ModelProvider modelProvider = new ModelProvider()
  			{
  				@Override
  				public ModelDefinition provide(int modelId) throws IOException
  				{
  					Index models = store.getIndex(IndexType.MODELS);
  					Archive archive = models.getArchive(modelId);
  
  					byte[] data = archive.decompress(store.getStorage().loadArchive(archive));
  					ModelDefinition inventoryModel = new ModelLoader().load(modelId, data);
  					return inventoryModel;
  				}
  			};
  
  			SpriteManager spriteManager = new SpriteManager(store);
  			spriteManager.load();
  
  			TextureManager textureManager = new TextureManager(store);
  			textureManager.load();
  
  			for (ItemDefinition itemDef : itemManager.getItems())
  			{
  				if (itemDef.name == null || itemDef.name.equalsIgnoreCase("null"))
  				{
  					continue;
  				}
  
  				try
  				{
  					BufferedImage sprite = ItemSpriteFactory.createSprite(itemManager, modelProvider, spriteManager, textureManager,
  						itemDef.id, 1, 1, 3153952, false);
  
  					File out = new File(outDir, itemDef.id + ".png");
  					BufferedImage img = sprite;
  					ImageIO.write(img, "PNG", out);
  
  					++count;
  				}
  				catch (Exception ex)
  				{
  					log.warn("error dumping item {}", itemDef.id, ex);
  				}
  			}
  		}
  
  		log.info("Dumped {} item images to {}", count, outDir);
  	}
test_case.class_method_signature: ItemSpriteFactoryTest.test()
test_case.full_signature: @Test @Ignore public void test()
test_case.identifier: test
test_case.invocations: newFolder load load getIndex getArchive decompress loadArchive getStorage load load load getItems equalsIgnoreCase createSprite write warn info
test_case.modifiers: @Test @Ignore public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test()
focal_class.file: cache/src/main/java/net/runelite/cache/item/ItemSpriteFactory.java
focal_class.identifier: ItemSpriteFactory
focal_class.class_method_signature: ItemSpriteFactory.createSprite(ItemProvider itemProvider, ModelProvider modelProvider,
  		SpriteProvider spriteProvider, TextureProvider textureProvider,
  		int itemId, int quantity, int border, int shadowColor,
  		boolean noted)
focal_class.full_signature: public static final BufferedImage createSprite(ItemProvider itemProvider, ModelProvider modelProvider,
  		SpriteProvider spriteProvider, TextureProvider textureProvider,
  		int itemId, int quantity, int border, int shadowColor,
  		boolean noted)
focal_class.identifier: createSprite
focal_class.modifiers: public static final
focal_class.parameters: (ItemProvider itemProvider, ModelProvider modelProvider,
  		SpriteProvider spriteProvider, TextureProvider textureProvider,
  		int itemId, int quantity, int border, int shadowColor,
  		boolean noted)
focal_class.return: BufferedImage
focal_class.signature: BufferedImage createSprite(ItemProvider itemProvider, ModelProvider modelProvider,
  		SpriteProvider spriteProvider, TextureProvider textureProvider,
  		int itemId, int quantity, int border, int shadowColor,
  		boolean noted)
focal_class.class_method_signature: ItemSpriteFactory.createSpritePixels(ItemProvider itemProvider, ModelProvider modelProvider,
  		SpriteProvider spriteProvider, TextureProvider textureProvider,
  		int itemId, int quantity, int border, int shadowColor,
  		boolean noted)
focal_class.full_signature: private static final SpritePixels createSpritePixels(ItemProvider itemProvider, ModelProvider modelProvider,
  		SpriteProvider spriteProvider, TextureProvider textureProvider,
  		int itemId, int quantity, int border, int shadowColor,
  		boolean noted)
focal_class.identifier: createSpritePixels
focal_class.modifiers: private static final
focal_class.parameters: (ItemProvider itemProvider, ModelProvider modelProvider,
  		SpriteProvider spriteProvider, TextureProvider textureProvider,
  		int itemId, int quantity, int border, int shadowColor,
  		boolean noted)
focal_class.return: SpritePixels
focal_class.signature: SpritePixels createSpritePixels(ItemProvider itemProvider, ModelProvider modelProvider,
  		SpriteProvider spriteProvider, TextureProvider textureProvider,
  		int itemId, int quantity, int border, int shadowColor,
  		boolean noted)
focal_class.class_method_signature: ItemSpriteFactory.getModel(ModelProvider modelProvider, ItemDefinition item)
focal_class.full_signature: private static Model getModel(ModelProvider modelProvider, ItemDefinition item)
focal_class.identifier: getModel
focal_class.modifiers: private static
focal_class.parameters: (ModelProvider modelProvider, ItemDefinition item)
focal_class.return: Model
focal_class.signature: Model getModel(ModelProvider modelProvider, ItemDefinition item)
focal_class.class_method_signature: ItemSpriteFactory.light(ModelDefinition def, int ambient, int contrast, int x, int y, int z)
focal_class.full_signature: private static Model light(ModelDefinition def, int ambient, int contrast, int x, int y, int z)
focal_class.identifier: light
focal_class.modifiers: private static
focal_class.parameters: (ModelDefinition def, int ambient, int contrast, int x, int y, int z)
focal_class.return: Model
focal_class.signature: Model light(ModelDefinition def, int ambient, int contrast, int x, int y, int z)
focal_class.class_method_signature: ItemSpriteFactory.method2608(int var0, int var1)
focal_class.full_signature: static final int method2608(int var0, int var1)
focal_class.identifier: method2608
focal_class.modifiers: static final
focal_class.parameters: (int var0, int var1)
focal_class.return: int
focal_class.signature: int method2608(int var0, int var1)
focal_class.class_method_signature: ItemSpriteFactory.bound2to126(int var0)
focal_class.full_signature: static final int bound2to126(int var0)
focal_class.identifier: bound2to126
focal_class.modifiers: static final
focal_class.parameters: (int var0)
focal_class.return: int
focal_class.signature: int bound2to126(int var0)
focal_method.body: public static final BufferedImage createSprite(ItemProvider itemProvider, ModelProvider modelProvider,
  		SpriteProvider spriteProvider, TextureProvider textureProvider,
  		int itemId, int quantity, int border, int shadowColor,
  		boolean noted) throws IOException
  	{
  		SpritePixels spritePixels = createSpritePixels(itemProvider, modelProvider, spriteProvider, textureProvider,
  			itemId, quantity, border, shadowColor, noted);
  		return spritePixels == null ? null : spritePixels.toBufferedImage();
  	}
focal_method.class_method_signature: ItemSpriteFactory.createSprite(ItemProvider itemProvider, ModelProvider modelProvider,
  		SpriteProvider spriteProvider, TextureProvider textureProvider,
  		int itemId, int quantity, int border, int shadowColor,
  		boolean noted)
focal_method.full_signature: public static final BufferedImage createSprite(ItemProvider itemProvider, ModelProvider modelProvider,
  		SpriteProvider spriteProvider, TextureProvider textureProvider,
  		int itemId, int quantity, int border, int shadowColor,
  		boolean noted)
focal_method.identifier: createSprite
focal_method.invocations: createSpritePixels toBufferedImage
focal_method.modifiers: public static final
focal_method.parameters: (ItemProvider itemProvider, ModelProvider modelProvider,
  		SpriteProvider spriteProvider, TextureProvider textureProvider,
  		int itemId, int quantity, int border, int shadowColor,
  		boolean noted)
focal_method.return: BufferedImage
focal_method.signature: BufferedImage createSprite(ItemProvider itemProvider, ModelProvider modelProvider,
  		SpriteProvider spriteProvider, TextureProvider textureProvider,
  		int itemId, int quantity, int border, int shadowColor,
  		boolean noted)