Paste not found.
Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Submitted on April 29, 2016 at 01:26 AM

Section 1 (Text)

List<List<ItemStack>> groups = new ArrayList();
List<ItemStack> tempStack = new ArrayList();

for(int i = 0; i < tab.tablist.size(); i++)
{			
	ResourceLocation modItems = new ResourceLocation(References.MODID, "tabs/" + tab.tablist.get(i).itemlocation);
	System.out.print("\nItem Location: " + tab.tablist.get(i).itemlocation);
			
	tempStack.clear();
			
	try{
		itemJson = Minecraft.getMinecraft().getResourceManager().getResource(modItems).getInputStream();
		itemJsonReader = new InputStreamReader(itemJson, "UTF-8");
		item = itemBuilder.create().fromJson(itemJsonReader, TopLevelItemEntry.class);
			
		for(int j = 0; j < item.items.size(); j++)
		{
			ItemNBTManager nbt = new ItemNBTManager();
			if(item.items.get(j).display != null)
			{
				ItemStack genericItem = ItemStack.loadItemStackFromNBT(ItemNBTManager.defineItemDefaults(item.items.get(j).id, item.items.get(j).Count, item.items.get(j).Damage));
				genericItem.setTagInfo("display", nbt.setDisplay(item.items.get(j).display.Name, item.items.get(j).display.Lore));
						
				tempStack.add(genericItem);
				bishopItemRegistry.add(genericItem);
			}
		}
				
groups.add(tempStack);
				
}catch (IOException e) {e.printStackTrace();}
			

//- Outputs every value
for(int i = 0; i < groups.size(); i++)
	for(int j = 0; j < groups.get(i).size(); j++)
		System.out.print("\nGroupItems: " + groups.get(i).get(j).getDisplayName());