Java Code Examples for net.minecraft.nbt.NBTTagList.getTagType()

The following are Jave code examples for showing how to use getTagType() of the net.minecraft.nbt.NBTTagList class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: modName   File: EmpireList.java   View Source Code Vote up 5 votes
@Override
public NBTTagCompound writeToNBT(NBTTagCompound nbt) 
{
	NBTTagList list = new NBTTagList();

	for(Map.Entry<UUID, Empire> entry : empires.entrySet())
	{
		list.appendTag(entry.getValue().writeToNBT());
	}
	int type = list.getTagType();
	System.out.println(type);
	nbt.setTag("empires", list);
	return nbt;
}