public static CompoundTag objectToCompoundTag(Object object)
	{
		CompoundTag tag = new CompoundTag(new HashMap<String, Tag>());
		
		for (Field field : object.getClass().getFields())
		{
			try
			{
				if (field.get(object) == null)
					continue;
				Tag t = null;
				
				t = Tag.fromValue(field.get(object));
				
				tag.getValue().put(field.getName(), t);
					
			}
			catch (Exception e)
			{
				e.printStackTrace();
				continue;
			}
		}
		
		return tag;
	}